charithd has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I need to execute remote perl script(script_to_call.pl) from my another perl script also passing @ARGV to script_to_call.pl . I tried with below but it not parse @ARGV:
do { local @ARGV; @ARGV = ("$OldTime","$NewTime","$WLSP/CDSServer11.log"); eval { system("ssh -o stricthostkeychecking=no $WLS './script_to_call. +pl'"); }; };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Run a remote Perl script from within a Perl script with @ARGV
by Athanasius (Archbishop) on Sep 26, 2012 at 04:56 UTC | |
Re: Run a remote Perl script from within a Perl script with @ARGV
by salva (Canon) on Sep 26, 2012 at 08:24 UTC |
Back to
Seekers of Perl Wisdom