LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2006, 03:14 PM   #1
NoodleDoodleMan
LQ Newbie
 
Registered: Apr 2006
Location: Manchester, UK
Distribution: Fedora 8
Posts: 20

Rep: Reputation: 0
pipe out nothing (if prog doesnt have a no verbose mode)


Hello,

This is a funny question, but would be highly useful for me. I have a program that has so silent/no verbose mode and I want to run it so that nothing gets printed out of the console or gets output to a file (this is because it prints out alot of info and slows down my comp) Ive been doing the usual:

$ program > output

just so that it is silent, but its getting to the stage where the output is getting very large! Is there something I could do to not let it printout to a file and still have it silent...?

Thanks in advance

Steve
 
Old 07-31-2006, 03:38 PM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
program >/dev/null 2>&1
 
Old 07-31-2006, 03:45 PM   #3
NoodleDoodleMan
LQ Newbie
 
Registered: Apr 2006
Location: Manchester, UK
Distribution: Fedora 8
Posts: 20

Original Poster
Rep: Reputation: 0
brilliant, thanks very much.

I couldnt ask what its actually doing there could I?
 
Old 07-31-2006, 03:50 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
It writes everything written to file descriptor 1 (stdout) to /dev/null (special write-only storage of great capacity) and file descriptor 2 (stderr) to descriptor 1 (stdout) which is written to /dev/null.
 
  


Reply



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
dd verbose mode? sausagejohnson Linux - General 10 06-20-2017 05:15 AM
pc always boot in verbose mode...help rgistered SUSE / openSUSE 3 02-27-2006 09:21 AM
Verbose to Silent Mode Very Maqbool Linux - Software 2 07-16-2005 02:34 AM
Bootsplash works only in verbose mode drawhla Debian 7 10-28-2004 08:10 PM
How Do I Set Start Up At Verbose Mode gram_vaz Mandriva 4 08-24-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 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
Open Source Consulting | Domain Registration