Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nohup - how does it work

Status
Not open for further replies.

RaviPydi

Programmer
Joined
Jul 23, 2004
Messages
4
Location
US
Hi,
I have to run a script in the background even when I exit. So I was using the following command.

nohup ScriptName.sh &

My environment is SunOS 5.8 and using Korn shell.

I am getting the message that nohup.out is created. But when I exit out, the process is getting killed and says you have running jobs.

I have run the same script with nohup on AIX and it was working fine. I am not sure if this is specific to Solaris. Any suggestions are welcome.

Thanks,
Ravi

 
It is probably a stupid Solaris problem. I have found that using Korn Shell, if I run a build for an app, say apache, after it is complete I lose my connection to the server. This doesn’t happen using BASH. I have never had this problem on AIX using ksh!
 
It is normal for it to say that you have running jobs. Are you sure it's being killed?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top