Wrapper Script
Ever run some commands that take a very long time to run, such as compiling code? Yet you never notice that the command stopped running. I solved this problem by creating a Python script, called wrapper.py, that runs a single command and then emails the result to the executor of the script.
Here is the script’s usage:
$ wrapper.py [COMMAND_WITH_ARGUMENTS] |
---|
For example, here is how I now compile code.
$ wrapper.py make all |
---|
You can download this Python script here, or you can copy-n-paste from down below.
by Phil for Humanity
on 10/02/2014