![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding options to a shell script | paulobrad | Shell Programming and Scripting | 1 | 07-15-2008 09:58 AM |
| pwd & cd commands not working in shell script | perk_bud | Shell Programming and Scripting | 9 | 04-07-2008 07:11 AM |
| shell script to run a few commands help! | perk_bud | Shell Programming and Scripting | 23 | 07-06-2007 03:34 AM |
| how to sql commands in shell script | balireddy_77 | Shell Programming and Scripting | 1 | 11-15-2006 02:00 PM |
| How to run unix commands in a new shell inside a shell script? | hkapil | Shell Programming and Scripting | 2 | 01-04-2006 06:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Adding ssh commands to a shell script
I have written some scripts that do a few admin tasks on 23 servers I manage.
Usually I execute these scripts from one server by running ssh commands remotley, i.e. ssh root@server2 shellscript, ssh root@server2 shellscript & so on.. It works fine but I want to improve this by writing a script on my main server to run all the scripts on the other 23 servers. Opinions on whether this is a good idea or not would be great & advice on how to implement it effectively would be great. |
|
|||||
|
In the past I had somethign similar for updating linux workstations. I had a script on the remote workstations run a cron script that checked for an update on a web server. If it was "true" it would wget the script and run it. So there were no actual ssh'ing. The cron would run everyhour or how ever long you wanted.
|
|
||||
|
Thanks for your input Ikon, you've given me some useful feedback, appreciate it.
|
| Sponsored Links | ||
|
|