![]() |
|
|
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 |
| du from list with du of list total | Movomito | Shell Programming and Scripting | 3 | 05-04-2008 10:33 PM |
| Request to modify script to list multiple parameters for V_fieldid variable | Sammy | Shell Programming and Scripting | 0 | 03-30-2008 09:08 PM |
| Korn pattern-list with a variable | partchimp | Shell Programming and Scripting | 2 | 03-26-2008 02:12 PM |
| how to generate a random list from a given list | mskcc | Shell Programming and Scripting | 3 | 05-30-2006 04:30 AM |
| Comparing a distinct value in 1 list with another list | manualvin | Shell Programming and Scripting | 6 | 06-22-2004 07:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using a variable list in ksh while
Hey all, been so long since I've done any KSH scriptting, I've forgotten exact sytax. 2 things,
1) I need to dot in an environment file that is a list of server names 2) I need to loop through though server names in a while loop, or until loop. Here's roughly what I have and trying to hammer out the syntax: # While not the end of the servers list, go through and copy # $1 to $2 while [[ ! EOF ]]; do scp user@server:/$1 user@server_from_list:/$2 done exit 1 $1 would be the file I want to distribute $2 is where I want it to go on the remote filesystem ie. $ ./dist .profile ~user/ This would distribute my profile to the entire list of servers in the .servers file... I'd do it by hand, but we're talking a list of 200+ servers. Thanks! JP |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|