<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
1. DO NOT EVER USE TELNET.<br>
<br>
2. Use ssh keys instead of setting a password in the script.<br>
<br>
3. You don't need to use expect to set the PWD to /tmp. You can do<br>
this with basic scripting. Pick up a bash scripting guide and read<br>
through it. I see almost nothing in your example that requires expect.<br>
This can be done with a simple bash script.<br>
<font color="#888888"><br>
<br>
<br>
</font><br></blockquote></div>Thank you for your reply. Please be informed that the remote node is a VxWorks node that currently does not support ssh. Actually I need to telnet to it and issue some commands and capture the output of the commands in a file and then wait for a prescribed time interval and then redo from the start (but I need to append all of the logs in just one file). I want to automate this procedure. Please help me.<br>
<br>