Is it possible to limit the amount of CPU a bash script can consume when it runs? I've a bash script running via a cron job every 4 hours, and when it initiates it eats up the CPU for about 15-20 seconds which causes timeouts and/or extremely slow page loading at the time the script initiates.
Was just wondering if it's possible to limit how much CPU it can consume, and if so, how.
Thanks!
Was just wondering if it's possible to limit how much CPU it can consume, and if so, how.
Thanks!