Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Call perl script from within another perl script

by charithd (Novice)
on Sep 25, 2012 at 06:17 UTC ( #995494=note: print w/ replies, xml ) Need Help??


in reply to Re: Call perl script from within another perl script
in thread Call perl script from within another perl script

hi all, I need to execute perl script(script_to_call.pl) on my remote location can I do it in same way (with @ARGV)? This below one not parse @ARGV:

do { local @ARGV; @ARGV = ("$OldTime","$NewTime","$WLSP/CDSServer11.log"); eval { system("ssh -o stricthostkeychecking=no $WLS './script_to_c +all.pl'"); }; };


Comment on Re^2: Call perl script from within another perl script
Download Code
Re^3: Call perl script from within another perl script
by dHarry (Monsignor) on Sep 25, 2012 at 11:33 UTC

    Instead of asking a question in a 4 year old thread, you should open a new thread. Your problem is also different to the problem addressed in this thread. See safely passing args through ssh for ideas.

      OK sorry for my bad. I will open a new thread. anyway thank you very much for your reply

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995494]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2014-04-23 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (551 votes), past polls