August 3, 2012

Hello, is there any possibility to run bat file on remote Windows from Linux?

I am working on continuous integration process and I am using Linux platform for my Jenkins (P.S. and it works great) but now I need, after processing, run bat file on remote pc(Windows) to process automation tests and send report. Thank's. klochnyk@yandex.ru

Fortunately, Linux has rdesktop utility. It is a client for remote desktop...

Fortunately, Linux has rdesktop utility. It is a client for remote desktop protocol (RDP), used in a no of MS prods incld WinNT terminal server, 2000 server, XP & 2003 / 2008 server. It is not needed to install vnc server. All u need is rdesktop client on Linux. Check whether it is there, by default it is, if not install from ur setup disk / source. Then simply, type as:
rdesktop Windipaddress
like
rdesktop 192.168.1.4

if u want to run .bat file on Linux PC, then install DOSEMU and with this help u can run easily.

Like  (0 likes)

Yes, there are a couple approaches, but probably the easiest way using the...

Yes, there are a couple approaches, but probably the easiest way using the rdesktop connection type. Rather than forwarding an entire windows desktop after doing a remote-desktop login, a single application (including a shell running your batch file) can be launched instead.

There's an article found in linux.com archives that describes it pretty well. It mentions virtual machines and launching notepad or a windows start menu, but you can just as easily lauch a cmd / command.com shell. Here's there link:
http://archive09.linux.com/feature/124908

Like  (0 likes)
Click Here!