Ever needed to write a script that works with all cPanel accounts that are “owned” by a specific cPanel reseller account? Me too. But I wasn’t sure how to do it.Continue Reading
Often times when running a bash script, you don’t want it to be executed on a cron (again) if it’s already running. This little trick will show you how to code a contingency into your script so that it doesn’t doubly or triply execute while the first script instance is running.
Typically this involves using a temp or lock file, so that you can easily track the status of the script. I’m going to show you two examples.Continue Reading