LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-11-2010, 09:02 AM   #1
smc2
LQ Newbie
 
Registered: Apr 2010
Posts: 29

Rep: Reputation: 0
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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-11-2010, 09:13 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,098

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by smc2 View Post
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&
 
3 members found this post helpful.
  


Reply

Tags
nohup, shell script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nohup sycamorex Linux - General 4 01-08-2008 06:49 PM
To use or not to use nohup entz Linux - Server 9 04-07-2007 05:52 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 12:36 PM
help on nohup vinayuh Linux - General 3 07-22-2005 01:24 PM
nohup failure tn1681 Programming 1 01-09-2003 06:40 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration