On Mon, 8 Oct 2001, Sandeep Periwal wrote:
Hi, I need to write a script to
- Automatic [non-interactive] Telnet to a server.
- Check if a file name "a.txt" exists in the /home/<telnetuser>
- Send an email of file's existence / non-existence.
- Disconnect Telnet
I do not understand how to do a Automatic [Non-interactive] telnet.
Try expect. it is designed to be used with the interactive programms. it will solve your problem.