I'm not sure what you expect to happen. You use Net::SSH::Expect to reboot a remote device. Obviously when rebooting the ssh process on the device will be shut down. Are you simply looking to ignore the connection error reported by Net::SSH::Expect?
In reply to Re^5: net-ssh-expect is giving error
by marto
in thread net-ssh-expect is giving error
by james_culling
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |