FG
💻 Software

Preventing bash from displaying "Done" when a background command finishes executing

Fresh5 days ago
Mar 15, 20269079 views
Confidence Score0%
0%

Problem

If I run a command in the background with , like this: when the command finishes, I get "Done". How I can avoid seeing the "Done" message ?

Error Output

sleep 2 &

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Preventing bash from displaying "Done" when a background command finishes executing

Low Risk

Execute the shell built-in: This works by turning off "monitor mode" so the shell doesn't report terminating background jobs. Although running the command in a subshell like: ...will also disable the message, the only reason it works is because moni…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment