PDA

View Full Version : [SOLVED] Bash: Suppressing ANY output



neur0
November 30th, 2009, 10:59 PM
Don't know if this is the right section, but I want to run a bash script in the background (which I can do with 'bg' or '&') but when I get my prompt back I don't want any status messages or errors (from this script) to print on the screen (why would I even want my prompt back if its constantly being littered with messages?)

DaithiF
November 30th, 2009, 11:10 PM
have you tried redirecting stdout and stderr?

somescript > /dev/null 2>&1

mo.reina
December 1st, 2009, 12:09 AM
have you tried redirecting stdout and stderr?

somescript > /dev/null 2>&1


+1

neur0
December 1st, 2009, 01:28 AM
Ok, that worked after 'CTRL-z' and 'bg' since it didn't give me back the prompt. I guess I was trying something like

somescript & > /dev/null 2>&1

Basically a one-liner
But this did the job.
Thanks