nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2005, 11:56 AM
Junior Member
User
 
Join Date: Aug 2005
Location: NYC
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 09-09-2005, 04:57 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
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, 03:29 AM
Junior Member
User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

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