LinuxQuestions.org

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

smc2 10-11-2010 08: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 08: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 05:57 AM.