Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Athanasius (Archbishop)
on Sep 26, 2012 at 04:56 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://995702]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found