LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2005, 02:39 PM   #1
tom221
LQ Newbie
 
Registered: May 2004
Location: CA
Distribution: Red Hat Linux
Posts: 11

Rep: Reputation: 0
execute multiple ssh remote commands


Can I use ssh to execute multiple remote commands? How?
 
Old 01-26-2005, 02:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what kind of commands? if you have a script that can do them for you, you can run "ssh blah.com scriptname" to execute them that way, alternatively, join them together in one line... "ssh blah.com 'one; two; three'
 
Old 01-28-2005, 01:00 PM   #3
tom221
LQ Newbie
 
Registered: May 2004
Location: CA
Distribution: Red Hat Linux
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your hint, I forgot to put single quote on the commands.
 
  


Reply


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
bash - execute commands on a remote machine capture results, etc dkrysak Programming 1 11-18-2005 01:50 PM
scp/ssh tail(multiple file) remote copy tpreitano Linux - General 1 08-22-2005 02:17 PM
Multiple Machines behind single Static IP - failing remote ssh Animalector Linux - Security 8 08-18-2005 06:01 PM
executing multiple commands by ssh jpan Linux - General 1 10-22-2004 02:12 PM
remote ssh commands on multiple hosts evilchild Linux - Software 6 08-12-2004 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 PM.

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