1

Just a quick question that I'm having trouble Googling for some reason.

When I fork a process in bash like this:

$ mything &

And it completes 10 seconds later, it interrupts my terminal like this:

[1]+  Done          mything

Is there a way to disable this? I want to run it in the background but I want it to never come back and tell me anything, ever.

3
  1. disown after forking
  2. Run it in screen: screen -dm mything

The second one has the advantage of you being able to re-attach and see the output before it finishes, if you'd like.

| improve this answer | |
1

Try using disown...

Try the following - which will not return text....

sleep 5 &
disown %1

This will never tell you the job has completed.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.