Avatar of Kinderly Wade
Kinderly Wade
Flag for United States of America asked on

allow only single process to execute my script instead of having more than one process executing the same script

Hi Experts,

I wrote a bash script that will execute my php code every 30 min via cron job. For some reason when check the process via the ps aux | grep myphp.php, I can see more than one process that are running the same php code. Is there a way for me to ensure that there is only a single process that executes my code instead of having more than one process running the same code? Thanks
* BashShell ScriptingPHPScripting Languages

Avatar of undefined
Last Comment
Kinderly Wade

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jsaun

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kinderly Wade

ASKER
Thanks jsaun!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy