LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   from Win XP, remotely execute a command on Linux using ssh (https://www.linuxquestions.org/questions/linux-software-2/from-win-xp-remotely-execute-a-command-on-linux-using-ssh-650785/)

lothario 06-21-2008 04:53 PM

from Win XP, remotely execute a command on Linux using ssh
 
I have:
a linux system with full ssh access to it (including root)
a Windows XP PC

From the XP, I often use Putty to ssh into this linux system.

Now I would like to:

a. Execute just these test scripts (and nothing else):
/home/me/scripts/full_batch
/home/me/scripts/half_batch

b. On the linux system

c. From XP

d. Without using Putty (a full ssh session)



In other words, can I do something this:
ssh me@myLinuxSystem '/home/me/scripts/full_batch'
but from the command line in XP?

Then I can automate this and let it run when certain events occur on XP.

dxqcanada 06-21-2008 05:42 PM

Plink (PuTTY Link).

This is a command line version of PuTTY.
Similiar to OpenSSH ... the last option is a command to be executed.

Usage: plink [options] [user@]host [command]

lothario 06-21-2008 05:49 PM

Great. Thanks.

phirestalker 06-21-2008 05:59 PM

D'oh not fast enough lol


All times are GMT -5. The time now is 01:57 AM.