The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to locate servers ibroxy Shell Programming and Scripting 5 05-30-2008 04:54 AM
script to ping servers sriny UNIX for Advanced & Expert Users 2 01-23-2008 09:19 AM
Script behaving differently on two servers mhssatya UNIX for Advanced & Expert Users 5 09-13-2006 03:28 PM
script to create users on many servers dnidiffer Shell Programming and Scripting 1 09-25-2005 03:32 AM
login into multiple servers thru script... avcert1998 Shell Programming and Scripting 1 09-09-2005 04:38 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-18-2008
cml2008 cml2008 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 12
3 servers 1 .ksh script

system = AIX

How can I explain this.....

Keep in mind I do not want to login to the boxes, persay, and that I am fairly new to scripting and unix.

I want to use SSH.

I have a script on server1, this is where I want it to run from.
I have server2 and server3, where I want the script to get information from.

basically I want to be able to run a grep command from server1 to server2 and server3.

That is just about it, I can't think of any other way to put it.

Any help is greatly appreciated, thank you in advance.

-cml2008

Last edited by cml2008; 01-18-2008 at 05:02 PM.. Reason: might have left out pertinent information
  #2 (permalink)  
Old 01-18-2008
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
See the man page for ssh. You can, if you set up ssh correctly, run a ssh to hostname with optional command.

Quote:
DESCRIPTION

ssh (SSH client) is a program for logging into a remote machine and for
executing commands on a remote machine. It is intended to replace rlogin
and rsh, and provide secure encrypted communications between two
untrusted hosts over an insecure network. X11 connections and arbitrary
TCP/IP ports can also be forwarded over the secure channel.

ssh connects and logs into the specified hostname (with optional user
name). The user must prove his/her identity to the remote machine using
one of several methods depending on the protocol version used.

If command is specified, command is executed on the remote host instead
of a login shell.
unixhelp.ed.ac.uk man ssh
  #3 (permalink)  
Old 01-20-2008
cml2008 cml2008 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 12
Thanks RTM, I did not even think about seeing if there were man pages for ssh.

I appreciate the help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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