[PATCH] Notify when finished
Harkaitz Agirre
harkaitz.aguirre at gmail.com
Mon Aug 26 14:10:36 UTC 2024
Thank you for your kind response Laurent,
I'm sorry, I didn't explain myself correctly, the key concept here is
"afterthought". I already executed the command, I'm waiting
for 4 minutes, I leave for a coffee.
$ long_running_command
...
...
Hell, this is lasting too long, I'll take a walk.
Ring ring, the phone notifies
$
I already wrote a script that did what you explain, in the form of
"snotify COMMAND", but it's not a good idea, the need for the
notification always an afterthought.
Harkaitz,
On Mon, 26 Aug 2024 13:13:58 +0000
"Laurent Bercot" <ska at skarnet.org> wrote:
> >When executing long-running commands (such as compiling code or
> >performing backups), it can be useful to receive notifications when
> >these tasks finish.
>
> $ long_running_command ; send_notification "$?"
>
> Shell programming is a lost art.
>
> --
> Laurent
>
More information about the busybox
mailing list