Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Athanasius (Abbot)
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: (16)
As of 2015-07-28 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls