Operating System - HP-UX
1822546 Members
2754 Online
109642 Solutions
New Discussion юеВ

Re: nohup process hangs on ssh session

 
Gamaliel
Frequent Advisor

nohup process hangs on ssh session

Hi there,

I start a ssh session with a batch file
ssh user@server file.bat The file includes a start of process like nohup start_process & and then it tries to finish the session with "exit" but at this point the program hangs, what can I do?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: nohup process hangs on ssh session

Shalom Joaquin,

put set -x in the script right after the shell is set and get some diagnostics.

Also you can do a ssh -vvv to get connection diagnostics.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: nohup process hangs on ssh session

Hi,

Start SSH server in debug mode and look what happens there.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sandman!
Honored Contributor

Re: nohup process hangs on ssh session

Faced a similar problem sometime ago...worked around it by NOT running it in the background i.e. removing nohup from the command.
Gamaliel
Frequent Advisor

Re: nohup process hangs on ssh session

Thank you all, in fact i saw a similar problem at forum, so using nohup star_process >/dev/null >&1 & solves my problem.

Thks!
Gamaliel
Frequent Advisor

Re: nohup process hangs on ssh session

I always find the right solution here!