LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   nohup, but no nohup.out -- how to? (http://www.linuxquestions.org/questions/programming-9/nohup-but-no-nohup-out-how-to-837397/)

smc2 10-11-2010 09:02 AM

nohup, but no nohup.out -- how to?
 
Hi ..
I am using nohup to run a script but I need to not have nohup.out file
how can I tell nohup to not produce this file?
thanks.

TB0ne 10-11-2010 09:13 AM

Quote:

Originally Posted by smc2 (Post 4123850)
Hi ..
I am using nohup to run a script but I need to not have nohup.out file
how can I tell nohup to not produce this file?
thanks.

You redirect it into /dev/null, like:
Code:

nohup myscriptfile.sh >/dev/null 2>&1&


All times are GMT -5. The time now is 08:01 AM.