By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,732 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,732 IT Pros & Developers. It's quick & easy.

Executing shell script on unix box through perl script executed on windows

P: 1
Hi,
I am newbie to perl, I hope you guys will help me resolve the challenge I am facing.
I have a unix shell script on one UNIX machine say A, and a batch file on windows machine say B. Now I want to write a perl script on windows box which can trigger both, the batch file on B and the script on A

Would you please help me...
Mar 6 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 511
Hi,
I am newbie to perl, I hope you guys will help me resolve the challenge I am facing.
I have a unix shell script on one UNIX machine say A, and a batch file on windows machine say B. Now I want to write a perl script on windows box which can trigger both, the batch file on B and the script on A

Would you please help me...
you want to write a perl script on Windows machine B right? I assume it is
1) you can call the batch file using system(). Or do a perldoc -q external to see various options.
2) As for calling the unix script at A, you can use Net::Telnet or SSH protocol to execute remote commands. Have a look at telnet eg or Perl SSH eg
Mar 6 '07 #2

P: 7
you can use a perl script module NET::TELNET
and can connect to that machine and execute the script .
Apr 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.