in reply to Re: net-ssh-expect is giving error
in thread net-ssh-expect is giving error

you should push the command into the background

Maybe, I'm confused here - how will pushing commands to background help when OP does a force reboot?

Replies are listed 'Best First'.
Re^3: net-ssh-expect is giving error
by james_culling (Novice) on Jan 17, 2014 at 07:42 UTC
    Hi All, I think Ericsson device won't support running the command in background. I tried to run the command in background, but its not rebooting.
      is there any way I can rum the reboot command with out getting the error.

        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?