Sometimes you want to execute script on your another server automatically without rsh. What you usually do is telnet to that server and execute the script. But how to make it automatic ?
You can use the tricky method bellow
Asume your server target is 198.10.10.2 and you want to execute
/home/hnawri/alarm.sh
(sleep 1
echo username
sleep 1
echo password
sleep 1
echo “/home/hnawri/alarm.sh”
sleep [...]
Archive for February, 2008
Automatic telnet on shell programming
Posted in Shell Programming on February 15, 2008 | 1 Comment »