Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Specifying a shell for use with Backticks

by bluto (Curate)
on Apr 12, 2006 at 15:29 UTC ( #542859=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $output = `PATH=$ENV{PATH} command arg1 arg2 argn`;
    
  2. or download this
    my $output = `setenv PATH "$ENV{PATH}"; command arg1 arg2 argn`;
    
  3. or download this
    my ($cp) = grep { -x $_ } map { "$_/cp" } grep { length $_ } split /:/
    +, $ENV{PATH};
    die "cant find cp" unless defined $cp;
    my $output = `$cp source dest`;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://542859]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-10-24 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?