or whatever the command prompt is, such as "$ " or "# " before sending the
commands.
Thank you for your reply. You were right . So I added the following : >expect "->" So it will wait for the system prompt . But still I cannot see any output from result of issuing 'cmd1' on the remote node . Can you please give me another hint?