Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Athanasius (Chancellor)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995702]
help
Chatterbox?
[Lady_Aleena]: ,oO(Well, that's not going to work.)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-05-23 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?