views:

525

answers:

4

Is it possible to run a windows xp bat script remotely from a ubuntu machine via command line?

A: 

You would probably use something like remote desktop, and if you did it that way, it would work, but your question isn't very specific

+2  A: 

This is possible if you have an ssh server running on the WinXP machine. It is trivial to set up such a server if you have installed Cygwin. This is well described here.

Then from an Ubuntu command line (or cron job) you run

ssh user@winxp command

Make sure your .bat has executable permissions.

Glenn
+1  A: 

I think that the technology you are after is WMI. I see that there is an ubuntu package called wmi-client, which you can sudo apt-get install and attempt to you. Some quick searches and I'm unable to find details, but maybe that will get you somewhere....

joeslice
A: 

Please see this Server Fault question an its accepted answer.

antispam