in reply to Perl - running remote script doesn't return back the control to perl.
In any case, a likely cause for your problem is that the restart.sh script may leave behind processes with some of their stdio streams attached to the SSH channel. In that case the ssh process will wait for those processes to close their streams before returning control.
|
|---|