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" <[email protected]> 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
> 

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to