nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

login into multiple servers thru script...

This is a discussion on login into multiple servers thru script... within the Shell scripting forums, part of the Development/Scripting category; I need to login into multiple servers thru a script run couple commands and run find command as root. I ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 09-09-2005, 12:56 PM
Junior Member
User
 
Join Date: Aug 2005
Location: NYC
Posts: 5
Rep Power: 0
avcert1998
Default login into multiple servers thru script...

I need to login into multiple servers thru a script run couple commands and run find command as root. I only have ssh access to the servers as a user than I can "su" to root. If you have a similar script please post it. Also if you can suggest commands that I should consider please let me know.

Thank you in advance.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-09-2005, 05:57 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

Well you can use ssh itself to do the job. For example:

Code:
ssh me@somebox.com /path/to/script
Store /path/to/script on somebox.com. In the script write the logic to run job. If have a more question reply back
Reply With Quote
  #3 (permalink)  
Old 03-17-2007, 04:29 AM
Junior Member
 
Join Date: Mar 2007
Posts: 2
Rep Power: 0
deepakhg
Default

I have a similar requirement. Please check my other thread.
But the change is I don't want to authenticate to so many machines (thought the username and pwd are same) and execute the same command again and again.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
multiple server status script marinm Linux software 21 10-24-2008 02:16 AM
shell script to send mail for each login. ephdia Shell scripting 2 11-27-2007 05:42 PM
dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1 raj Mail Servers 1 11-15-2007 11:43 AM
Script to add users to multiple servers. deepakhg Shell scripting 0 03-17-2007 04:02 AM
shell script that parses multiple log files and checks for a Anonymous Shell scripting 1 11-15-2006 10:38 PM


All times are GMT +5.5. The time now is 07:24 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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