Answer the question
In order to leave comments, you need to log in
With what arguments do you need to run PHP to change the name in top?
There is a script which through exec launches other PHP scripts. During testing, for unclear reasons, some scripts running 24/7 simply hang. As I understand it, this is a PHP problem, not the code itself. The task is to do killall -9 of a specific script, so as not to accidentally launch a duplicate. So far, the idea is the same - somehow make sure that each script has its own process name.
The question is how to do it?
If there are other suggestions on how to implement - ready to listen.
Thank you in advance.
PS: There are 200-400 scripts running and there is somehow no desire to engage in catching witches among them.
Answer the question
In order to leave comments, you need to log in
Подождите, а запускать с параметром командной строки = нужное "имя" и потом по этому имени ps -ax | grep "name"
?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question