[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] ssh remote command

James P. Kinney III wrote:
> What would cause an ssh tunneled command to no return when it finished?
> ssh -f remotemachine /usr/local/mynewcommand.sh

-f says run in the background, thus I would expect it to return immediately.
> mynewcommand.sh is a shell script that runs the ssh port tunnel followed
> by the nc command to transport serial port over to ssh forwarded port.
> It ends with 
> exit 0
> What I see is the initial ssh never finishes and just sits there. I
> thought once the command ran, it should terminate and the ssh closes. It
> doesn't. puzzled. 
>  I stuck in some echo"" statement so I can see what is happening and
> everything runs OK on the remote machine. 
> ------------------------------------------------------------------------
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

Until later, Geoffrey