Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell script

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

can any one hlep in creating the shell script where it should have unix commands like copy,etc and the script should pick up each machine from a file. The file will have list of machines (probably 50 machines). So all the commands are same for all these 50 machines.

reg
 
As a start, you could create a file (say 'machines') with each of your boxes listed, one per line. Then start your script with:

for name in `cat machines`
do
....insert things you want to do......ftp -n $name for example?
done

Sorry this isn't too detailed - post back with more
details of exact requirements, but this might get you started.
 
thank you very much. It works fine...

I was not getting "for name in" command..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top