LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-21-2008, 04:53 PM   #1
lothario
Member
 
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):
/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.
 
Old 06-21-2008, 05:42 PM   #2
dxqcanada
Member
 
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, 05:49 PM   #3
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Great. Thanks.
 
Old 06-21-2008, 05:59 PM   #4
phirestalker
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 06:01 PM. Reason: dxqcanada beat me to it
 
  


Reply



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 04:12 PM
URGENT: How to execute a Linux command remotely alix123 Programming 7 04-06-2006 03:00 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 01:38 AM
Using FTP to execute command line commands remotely steve_2010 Solaris / OpenSolaris 4 02-13-2004 08:44 AM
SSH: execute one command then exit kleptophobiac Linux - Software 10 01-30-2004 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 AM.

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