I telnet a aix host to run a nohup job, but when i log off, the terminal shows "there are running jobs", if i still logout, the job will stop.
I do know use ps -ef|grep to check my process.
my script is for starting a web server. in fact i have 2 server , one is sco,the other is aix, nohup is ok in sco.
i think the problem is dependant on ths aix's config.
had the same problem, that the usual way like you did:
nohup <cmd> &
did stop running, when i logged off. We guess it's some kind of bug, because it's only happening on an AIX 5.2 machine we have installed. All our 4.3.3 behave fine. Don't ask me why this problem occurs, but there is a solution that works and let me log off while the process is still alive:
I have seen the same problem on 4.3.3. Some programs do this and I never figured out why some do and some don't. I have gotten around it by writing a shell wrapper around to start up my <program>, then nohupping that.
For example:
vi startwbsrv
#!/bin/ksh
/usr/webserver/start
:wq
nohup startwbsrv &
This has puzzled me for a while but since this workaround works I never dug deeper. If you figure it out, let me know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.