Skrevet av Emne: How to start a completely quiet background process using bash  (Lest 5703 ganger)

ATC

  • Gjest
How to start a completely quiet background process using bash
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • This article describes how to execute unix processes in the background using the default linux shell: /bin/bash



    ATC

    • Gjest
    [Solved] How to start a completely quiet background process using bash
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • "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".