LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pipe out nothing (if prog doesnt have a no verbose mode) (https://www.linuxquestions.org/questions/linux-newbie-8/pipe-out-nothing-if-prog-doesnt-have-a-no-verbose-mode-469471/)

NoodleDoodleMan 07-31-2006 03:14 PM

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

berbae 07-31-2006 03:38 PM

program >/dev/null 2>&1

NoodleDoodleMan 07-31-2006 03:45 PM

brilliant, thanks very much.

I couldnt ask what its actually doing there could I?

raskin 07-31-2006 03:50 PM

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.


All times are GMT -5. The time now is 02:49 PM.