Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: How to start a completely quiet background process using bash
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
This article describes how to execute unix processes in the background using the default linux shell: /bin/bash
Tittel: [Solved] How to start a completely quiet background process using bash
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
"command"
Will start that command in the foreground. All output (standard/output) will be shown.

"command &"
Will start that command in the background. All output (standard/output) will be shown.

"command >/dev/null &"
Will start that command in the background. Only error messages will be shown.

"command 2&>/dev/null &"
Will start that command in the background. No output will be shown.

"command >myoutput 2>myerrors &"
Will start that command in the background. Standard output will be placed in a file "myoutput" and errors in a file "myerrors".