0

I Have a unix shell script, after it runs, it will ftp a file to windows server. Then i need to manuallu schedule a windows batch script. couls you please suggest me method where i can call the batch script from the unix shell script.

Thanks in advance

user2474182
  • 1
  • 1
  • 1
  • You mean, you want to execute the batch script remotely, right? From a unix box? – thejh Jun 11 '13 at 11:00
  • Why you tag question with #java? – user1516873 Jun 11 '13 at 11:29
  • If you are sending a Windows Shell script to a Windows server and want it to run on that server, you have to set up a service on that server to do so. You might look at Windows Remote Shell and see if it is appropriate: http://blog.hernanjlarrea.com.ar/index.php/introducing-windows-remote-shell/ – Bob Dalgleish Jun 11 '13 at 11:51
  • Yes thejh, i want to execute or call the windows batch script from unix box. – user2474182 Jun 12 '13 at 16:38

1 Answers1

0

Take a look at this:

https://stackoverflow.com/a/16720186/2471910

It talks specifically about invoking a windows program from another windows machine (instead of a unix machine) but the concepts are the same since ssh is available on unix as well.

Community
  • 1
  • 1
Trenin
  • 2,041
  • 1
  • 14
  • 20