Computing.Net > Forums > Solaris > Non root user processes dies

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Non root user processes dies

Reply to Message Icon

Name: Stefan
Date: February 19, 2003 at 02:36:28 Pacific
OS: Solaris 8
CPU/Ram: doesn´t matter
Comment:

Hi!
My problem:
I run a background process as a non root user
but when I close the terminal window the process dies and all child processes also.
This does not happen when I start the process from a BASH shell though.

This is a java process and the line in the script that starts the process looks like this:

exec su $USER -c "exec my_commands > /dev/null 2>&1" &




Sponsored Link
Ads by Google

Response Number 1
Name: Hamid
Date: February 19, 2003 at 05:01:28 Pacific
Reply:

Why not try nohup command, the process will continue to run when you terminate your session:
try something like this:
nohup su $USER -c "exec my_commands > /dev/null 2>&1" &

Mind you nohup may get confused with redirect ">" output as it produces its own output file called nohup.out



0

Response Number 2
Name: Stefan
Date: February 19, 2003 at 05:46:48 Pacific
Reply:

Works perfect, thanks alot for your quick answer.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Non root user processes dies

how to use port 80 as non root user www.computing.net/answers/solaris/how-to-use-port-80-as-non-root-user/4414.html

how to use port 80 as non root user www.computing.net/answers/solaris/how-to-use-port-80-as-non-root-user/2305.html

Problem with non root user www.computing.net/answers/solaris/problem-with-non-root-user/3117.html