|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by nosremes in Automation, Bourne Shell (sh), Bourne-Again Shell (bash)
Hi All,
I have something that I would like to automate but don't know how to start it.
I have a list of unix servers in a txt file. What I want is, I would like to create a script that will run putty to login to those servers inside the txt file and execute a sudo script like this ex. /var/testscripts/myscripts
.pl then output it to a file if it is successful or not. The username and login can be declare on the script.
Or I would like to create a batch script that will call putty and automatically login to those servers inside the text file. Let say, the text file have 5 servers. The script will open up 5 putty session on those 5 different servers.
Appreciate any sample code related to my queries above. Thanks.
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625