I’m using a modification of Paul Biggar’s LaTeX build system.
The core of this system is just a bash script that executes an infinite loop. The question is, how do I run this script?
At the moment I just run it by invoking it in the terminal:
$ ./build-it.sh report
However, there are two problems with this:
- It clutters the terminal with irrelevant output. Redirecting the standard output/error streams to
/dev/null
doesn’t help. In fact, every line that is executed in the script is also written to the console. Is this even normal? - After some time (about 30 minutes, I’d say) the script terminates with an error (“Cputime limit exceeded”).
The first problem could probably be solved by using nohup
and closing the terminal window. But this still leaves the second problem. I also feel that this isn’t a “clean” solution because I’d prefer to run the script normally in the background and prevent its standard output (and incidentally, not error messages).
Isn’t there a proper way to do this?