Here Today, Gone When You Exit: Proper Tempfiles in Shell Scripts
In the course of my career, I've periodically come across code like this in shell scripts: TEMP_FILE=/tmp/tempfile Or sometimes, slightly more elegantly: TEMPFILE=/tmp/tempfile.$$ The problems with the first example are obvious, especially if it appears in many different scripts. The second is better. The "$$" means "my process ID", who if whatever script had a process ID of 5309, the TEMPFILE variable would be set to /...
Read More















































Invitation To Join Me For MIT’s Free Online Operating System Course!
Did you ever have something you wanted to do for a long time but never actually started? Maybe something that seemed too big or too difficult? For a long time I've wanted to take MIT's Operating Syste...
Read More