XP is just a number | |
PerlMonks |
Re^5: Perl Expectby salva (Canon) |
on Jan 18, 2018 at 07:39 UTC ( [id://1207456]=note: print w/replies, xml ) | Need Help?? |
Expect provides several methods for retrieving the matching data and also the last error. Have you experimented with them? Expect should be able to detect the slave process has terminated and report it accordingly.
You could also try Net::Telnet. That module doesn't depend on an intermediate program and shouldn't have any problem detecting a remote closed connection (in case Expect has any).
In Section
Seekers of Perl Wisdom
|
|