http://www.perlmonks.org?node_id=1053425


in reply to Net::OpenSSH Problem

system keeps waiting for the remote command (in your case !bash) to exit before returning control to your program and probably !bash is waiting for you to write some commands at the terminal.

Read the first entry on the module FAQ for a description of the issue you are facing.

Is there any online documentation for that device? maybe there is some way to run unix commands without going through the custom shell.