Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-06-21 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?