Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Athanasius (Monsignor)
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-22 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls