I have a VPS server where I am updating the code and one step is to execute UglifyJS, this is very slow and takes about 20 seconds. Our VPS will always kill the process that takes 100% CPU for longer than 10 seconds. So what I do is start uglify script, count to 7, press Control+Z so the process pauses, count to 10, type fg
and press ENTER, then count to 7, and repeat this until Uglify is finished.
Is there a way to automate this 'pausing' or other way to prevent VPS from killing Uglify?