|
This is a simple program for controlling long-running, CPU-intensive jobs on a multi-user system. It will control your job, even after you've logged out of the system (barring any unusually mean killer programs installed on the system). It has some useful options for controlling jobs. For example, the configuration I use does the following: 1. If somebody other than me is logged into the console, disallow my job from running (suspend or kill it, as specified). 2. If somebody is logged onto the system anywhere else (i.e., via telnet or ssh or something) and has been on for under 1 hour, disallow my job. 3. Disallow my job whenever ``root'' logs on. 4. If the job is not disallowed, start/resume/continue it as appropriate. The launcher program itself spends over 99.9% of it's time asleep, so it adds no overhead and doesn't slow the job down when it's running. It briefly wakes up once every 2 seconds or so, to poll the system for users and see if any action needs to be taken. Download The source code is at launcher-1.0.tar.gz . Have fun with it, and try not to get into trouble. Make sure you test it out in a harmless way before starting any jobs that could potentially screw up your system or corrupt important files. |