Re:Ask HN: Reminders for long-running shell jobs?
by pigpigs on Tuesday June 27, 2017 @10:17AM
(#14645576)
Cool! May I ask how do you hook it up with opening / closing lid, sticking usb drive etc?
Re:Ask HN: Reminders for long-running shell jobs?
by simon_acca on Tuesday June 27, 2017 @05:08PM
(#14649463)
I simply do `udevadm monitor | telltg & i3lock`.
It's ugly to look at, but the idea is that you should never receive any logs, if you do, don't look at them but rather get your laptop in sight quickly because something is happening to it (I use it in the public library or such settings).
All you have to do is `$ my_long_running_job; telltg "Done"` and you get a notification on all your devices. Very handy also for remote jobs.
The best use case so far has been piping the udev log into it when my laptop is locked in a public place and I'm away. I get a notification on my phone when someone open/closes the lid, unplugs the charger, sticks a USB drive in and so on.