Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execure a unix script from an external windows machine

Status
Not open for further replies.

mattquantic

Programmer
Mar 28, 2004
196
GB
Hi. I have two machines in different networks.

I need to execute a unix script, but I need to call (and pass parameters to it) from a windows machine.

Is this possible?

M@)
 
On the windows machine open a console window and type rsh /?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Or alternatively for a more secure solution you could use the plink utility that comes with PuTTY and public/private key authentication.

Annihilannic.
 
I'd like to second Annihilannic's suggestion. PuTTY is a great utility.
 
I will I be able to connect to the linux machine, run a batch of commands and quit, all automatically?

M@)
 
Yes, for example:

[tt]Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINNT\system32>cd "\program files\putty"

C:\Program Files\putty>plink somehostname uptime
8:24am up 65 days, 15:12, 7 users, load average: 0.08, 0.09, 0.09

C:\Program Files\putty>[/tt]

In this example I have a saved PuTTY profile called 'somehostname' which is configured for public/private key authentication with no passphrase. You could add this command to the Windows "Scheduled Tasks" and have it run automatically when you like.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top