Reputation: 2026
When I start a background process, Bash outputs the process ID. Then Bash outputs a status message when the process is complete. Here's what I mean:
$ echo foo &
[1] 12345
foo
$ echo bar
bar
[1]+ Done echo foo
Is it possible to suppress this information?
Upvotes: 1
Views: 119
Reputation: 15320
You could start it in a separate shell by
bash -c 'echo foo &'
but you would also have no jobcontrol.
You can also disable job monitoring by
set +m
then you don't have this message
[1]+ Done echo foo
but you still get
[1] 12345
Upvotes: 0