The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to send command periodically to remote server sayeo Shell Programming and Scripting 2 03-17-2008 02:42 AM
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 12:30 PM
Running a script in a server from another server csaha Shell Programming and Scripting 2 02-16-2006 04:11 AM
Command for copy a file from one server to another server sarwan High Level Programming 2 11-13-2005 10:17 AM
how to move a file from one server to another server using FTP in shell script? forevercalz Shell Programming and Scripting 4 10-27-2005 01:53 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
Registered User
 

Join Date: Feb 2008
Posts: 81
I want to run a script or command on other server

Hi all,

I have done ssh-keygen to two servers in work place and given there entry for authorized_keys. I m able to ssh to other servers without asking password. But i face problem while trying to run a command or script on other server. It is throwing an Error.

$ ssh username@server2:iostat

Error:
ssh: server2:iostat: host/servname not known

Please help me in this Regard.

Thank U
Naree
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 81
Can any one please help me in this regard

Hi all,
I have posted my thread in the above!! Please any one who can help in this regard.

Thank U
Naree
Reply With Quote
  #3 (permalink)  
Old 03-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 81
Help Me

HELP ME IN THIS REGARD...

Thank U
Naree
Reply With Quote
  #4 (permalink)  
Old 03-12-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,230
have a look at the manpage!

ssh [-l login_name] hostname | user@hostname [ command]

so:
$ ssh username@server2 iostat

without the ":"
Reply With Quote
  #5 (permalink)  
Old 03-12-2008
Registered User
 

Join Date: Feb 2008
Posts: 81
Thanks U

Thanks alot !! It really solved my purpose

Naree
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 12:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66