in reply to net-ssh-expect is giving error

Maybe you should push the command into the background (trailing '&' on the command, or whatever the remote system requires), so you can get back a prompt and close as you intend? Just a thought.

Hope that helps.

Replies are listed 'Best First'.
Re^2: net-ssh-expect is giving error
by robby_dobby (Hermit) on Jan 17, 2014 at 05:29 UTC

    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?
      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.