The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cat /dev/null freakydancer UNIX for Dummies Questions & Answers 4 09-10-2008 12:34 PM
compare null with non-null nitin Shell Programming and Scripting 8 11-04-2006 04:58 PM
> /dev/null rrs Shell Programming and Scripting 2 06-19-2006 01:29 AM
Null Value Khoomfire UNIX for Advanced & Expert Users 1 04-10-2006 06:55 AM
/dev/null sam71 UNIX for Dummies Questions & Answers 3 05-05-2005 06:25 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-26-2001
piltrafa's Avatar
Registered User
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 77
Talking >/dev/null

Maybe it's an stupid question but remeber... I'm Junior..
I use command line to run programs, and some of them gives a lot of information when, for example, you open a window or other actions. That's really bad because my terminal gets full of unwanted messages, so I use "bin file & >/dev/null" to avoid the problem.
It work's fine for almost any program but it doesn't work for others ( mozilla ). I know that maybe is because the file that I execute calls other files and are the others that send those messages to my screen.
So here is my question: How can I force a file and childs to use /dev/null as info/error output.

Thanx and sorry for my poor english. It's not my natural language..
Forum Sponsor
  #2  
Old 10-26-2001
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Try...

someprog > /dev/null 2>&1 &

...this will run "someprog" in the background with
stdout redirected to /dev/null and stderr redirected to
stdout (now /dev/null)
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0