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!

How do I run a command remotely on a linux machine from ms cmd prompt

Status
Not open for further replies.

Guy1983

Programmer
Jan 7, 2005
13
US
Hi,

I want to run to execute a command in the ms dos window on my machine that will execute on a linux system that is on my network. More specifically, I have a script on the linux machine that i would like to be able to run from my xp machine. Does anyone know how to make this work? I have tried rsh but i can't get that to work. I posted the problems that i am having with rsh in this forum a few days ago but i didn't get many responses.

Thank you,

guy 1983
 
You should install "PuTTY" on your Windows machine. It is a free SSH client (amongst other things).

This will let you run a windows batch file to call an 'ssh' session out to your linux box and run the remote command.

PuTTy




Hosting Solutions for Home or Business.
 
As the previous answer stated, you can use PuTTY from windows to execute a command on a linux box, however if you are simply trying to execute a command on a linux box as part of a script running on your windows side, you may find 'Plink' a better choice. It's from the same person that makes PuTTY, but it's a command-line app that executes a command on a remove linux system over SSH and is better suited to being called from a Windows/DOS batch file.

HTH
Gavin
 
Wassup with Telnet?

Unless you use / have SSH you should be able to simply telnet from a dos command to your Linux system and logon and issue your command / run your script.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top