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 |
program >/dev/null 2>&1
|
brilliant, thanks very much.
I couldnt ask what its actually doing there could I? |
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. |