Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Specifying a shell for use with Backticks

by bluto (Curate)
on Apr 12, 2006 at 15:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found