Is there a way to make bash job control quiet?

前端 未结 5 1392
无人及你
无人及你 2020-12-02 13:25

Bash is quite verbose when running jobs in the background:

$ echo toto&
toto
[1] 15922
[1]+  Done                    echo toto

Since I\

5条回答
  •  独厮守ぢ
    2020-12-02 13:56

    Wrap it in a dummy script:

    quiet.sh:

    #!/bin/bash
    $@ &
    

    then call it, passing your command to it as an argument:

    ./quiet.sh echo toto
    

    You may need to play with quotes depending on your input.

提交回复
热议问题