I would like to redirect the output generated from a background application in Linux to /dev/null.
I am using kate text editor and it prints all the debug messages on the terminal which I would like to redirect to /dev/null.
Any idea how to do it ?
Thanks
You use:
If it should run in the Background add an
&>/dev/null 2>&1means redirectstdoutto/dev/nullANDstderrto the place wherestdoutpoints at that timeIf you want
stderrto occur on console and onlystdoutgoing to/dev/nullyou can use:In this case
stderris redirected tostdout(e.g. your console) and afterwards the originalstdoutis redirected to/dev/nullIf the program should not terminate you can use:
Without any parameter all output lands in nohup.out