The Python signal module let’s you setup Unix signals, including SIGALRM.
I went on a Baltic holiday recently, going from Helsinki to St-Petersburg and then on to Tallinn, Riga and Vilnius.
Machines can fail, so it’s important to make sure your files are saved. This article has some great ways of doing reliable file updates with python. Great stuff.
My colleague Day Barr found this very useful Stack Overflow article. It shows how to redirect stdout to a log file from with a bash script. This is very useful if you’re debugging an existing bash script and don’t want to add a redirect to every line in it.
Copyright (c) 2024 Michel Hollands