A
A
alexdora2016-06-14 17:59:36
PHP
alexdora, 2016-06-14 17:59:36

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

3 answer(s)
Сергей Савостин, 2016-06-14
@alexdora

Подождите, а запускать с параметром командной строки = нужное "имя" и потом по этому имени
ps -ax | grep "name"?

S
shagguboy, 2016-06-14
@shagguboy

https://www.gnu.org/software/coreutils/manual/html...

Анатолий, 2016-06-14
@taliban

1. делаем симлинку на пхп с названием test
2. запускаем симлинку
3. ???
4. PROFIT!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question