LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-21-2008, 05:53 PM   #1
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
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):

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.
Old 06-21-2008, 06:42 PM   #2
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
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]
Old 06-21-2008, 06:49 PM   #3
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Great. Thanks.
Old 06-21-2008, 06:59 PM   #4
LQ Newbie
Registered: Oct 2007
Location: Edmond, OK
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
D'oh not fast enough lol

Last edited by phirestalker; 06-21-2008 at 07:01 PM. Reason: dxqcanada beat me to it


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remotely execute linux and windows program alix123 Linux - Software 8 05-14-2007 05:12 PM
URGENT: How to execute a Linux command remotely alix123 Programming 7 04-06-2006 04:00 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 02:38 AM
Using FTP to execute command line commands remotely steve_2010 Solaris / OpenSolaris 4 02-13-2004 09:44 AM
SSH: execute one command then exit kleptophobiac Linux - Software 10 01-30-2004 09:21 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration