Results 1 to 1 of 1
well i have got a problem and i need some help. i have a network with ip starting from 172.24.0.X and the hostname matches with the ip's last digit. i.e. ...
- 08-14-2009 #1
scripting help
well i have got a problem and i need some help. i have a network with ip starting from 172.24.0.X and the hostname matches with the ip's last digit. i.e. if the ip is 172.24.0.1 then the station is station1.
now the problem is that i need to write a script where the station host names will be in one file. in the other file will be the script which will read the file contaning the hostname convert them to ip and ssh into them and run a command as root. i know about the ssh host@station <command> but my problem is that every ip has a different password so when run the script it should ask the password from me.
please help. all my efforts went down the drain.
thanks in advance.
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.




Reply With Quote