waytoperl has asked for the wisdom of the Perl Monks concerning the following question:
I've a task to launch terminal or cmd in MAC or PC. Script should launch based on OS.
#To run from MAC open my $ws, '-|', @cmd or die "Error opening pipe: $!"; #To run from Windows open my $ws, "@cmd |" or die "Can't launch [@cmd]: $! / $?";
If there an efficient way to run open based on OS?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Launch terminal in MAC and PC
by jellisii2 (Hermit) on Oct 30, 2014 at 16:53 UTC | |
by waytoperl (Beadle) on Oct 31, 2014 at 12:01 UTC | |
by Corion (Patriarch) on Oct 31, 2014 at 12:08 UTC | |
|
Re: Launch terminal in MAC and PC
by aitap (Curate) on Oct 30, 2014 at 18:34 UTC | |
|
Re: Launch terminal in MAC and PC
by perlron (Pilgrim) on Oct 30, 2014 at 16:57 UTC | |
|
Re: Launch terminal in MAC and PC
by Anonymous Monk on Oct 30, 2014 at 16:55 UTC | |
by Anonymous Monk on Oct 30, 2014 at 17:06 UTC |