FG
💻 Software

How can I trigger a notification when a job/process ends?

Fresh5 days ago
Mar 15, 2026107916 views
Confidence Score1%
1%

Problem

The place I work at has commands that take a long time to execute. Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a little sound.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I trigger a notification when a job/process ends?

Low Risk

Generally, if you know this before running the command, you can just start it with: This will execute the after the previous command has exited (regardless of its exit code). The will start it in background. If you care about a successful or failure exit, respectively use: If the command has already started you may use job control to suspend it, then return it to the foreground with chained with your notification: Now … what you want to do after this depends on your environment. On any system, …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment