Hi,
I have a perl script which uses Net::Telnet module to open a telnet session with my unix boxes, and executes lot of commands on those boxes.
As this module is implemented, when 'cmd' is used, this module waits for the 'prompt' to decide whether the command is finished or not. Now in case the 'timeout' is reached before the 'prompt' appears, the module directly throws error (even if the command might actually be running on the remote unix box!).
Is there any fool proof method that this module understands that the command is actually completed. Something similar to using 'ssh -l <user> <host> <command>'
This would come-out only after the command finishes on the remote host!.
Thanks,