Home > OS > The nohup command can what all don't output
The nohup command can what all don't output
Time:11-10
Such as title, the background is another working group to write a shell, shell I need with his shell tunes, and my shell contains nohup background in parallel, because nohup will automatically prompt process, so that the shell of his judgment error, and can only be 0,,, give a way for bosses,
CodePudding user response:
Try it like this: Nohup cmd_xxx & gt;/dev/null 2 & gt; & 1 & amp;
/dev/null 2 & gt; & 1 role is to make the standard output to/dev/null (discarding the standard output), and then the error output from the reuse standard output descriptor, so the error output also are directed to the/dev/null, error output is also rejected,