Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Run a remote Perl script from within a Perl script with @ARGV

by Athanasius (Prior)
on Sep 26, 2012 at 04:56 UTC ( #995702=note: print w/ replies, xml ) Need Help??


in reply to Run a remote Perl script from within a Perl script with @ARGV

Try this (untested):

my @args = ('ssh', '-o', 'stricthostkeychecking=no', $WLS, './script_to_call.pl', $OldTime, $NewTime, "$WLSP/CDSServer11.log"); system(@args);

@ARGV contains what was passed in on the command line. It is not used for passing to another script. See system.

Hope that helps,

Athanasius <°(((><contra mundum


Comment on Re: Run a remote Perl script from within a Perl script with @ARGV
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-17 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (458 votes), past polls