J
J
Justique2016-03-04 22:26:30
PHP
Justique, 2016-03-04 22:26:30

Cron PID and php?

Good evening, tell me how to transfer the pid of the cron process to the php file?
More detailed: there is a certain function that the user can run, after a minute cron pulls it up and executes it, the problem is that the user could interrupt the process. Other than stopping cron, there are no other ideas.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton B, 2016-03-05
@Justique

The crown should not be touched.
php.net/manual/ru/function.getmypid.php
php.net/manual/ru/function.posix-kill.php

D
Dmitry, 2016-03-04
@thewind

Maybe just grep by script name and exact parameters? Here you will have pid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question