Operating System - HP-UX
1753621 Members
5592 Online
108797 Solutions
New Discussion юеВ

Re: Run a Windows command remotely from a Unix server?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Run a Windows command remotely from a Unix server?

Hi,

Is there a way to run/execute a Windows command remotely that is started on a Unix server? (rexec?).

10 points to any answer.
Thank you
Gino
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: Run a Windows command remotely from a Unix server?

There are telnet and ssh servers/services available too for win - this could work.

But if your command will invoke a GUI you will stuck ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: Run a Windows command remotely from a Unix server?

Like Torsten, I guess I'm wondering what it is you're trying to do - what command do you need to run?


Pete

Pete
J. Bravo
Respected Contributor

Re: Run a Windows command remotely from a Unix server?

Hi:

I think that Windows XP implements rsh and rexec commands.

I supose that the usernames have to be the same in both systems and you have to configure .rhosts and /etc/hosts in the unix system.

Regards;

J. Bravo.
Oviwan
Honored Contributor

Re: Run a Windows command remotely from a Unix server?

Hey

have you alread check the windows service for unix? may you find there something useful.
http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx

Regards
J. Bravo
Respected Contributor

Re: Run a Windows command remotely from a Unix server?

Hello:

For running a windows command started on a Unix server, you need a rsh daemon for Windows, I know Rshsvc.exe is provided with the Windows 2000 Server, but not in XP.

Regards;

J. Bravo.
Gino Castoldi_2
Honored Contributor

Re: Run a Windows command remotely from a Unix server?

Hi,

We are trying to for example to initiate from a Unix server a command to restart IIS on W2K3 server.

10 points to any answer.
Thank you
Gino
Denver Osborn
Honored Contributor

Re: Run a Windows command remotely from a Unix server?

I've installed cygwin and openssh on a w2k3 server used for CommandView to do the same thing you're looking for. It works pretty well and let's me run bash scripts to automate tasks on the windows box w/out having to remote desktop in.


-denver