Friday, 6 September 2013

getting cron specific pid

getting cron specific pid

I am working on a system where i would like to create and destroy
cronjobs. Now when i create the following cronjobs for example:
1**** /path/users.php?id=2
1**** /path/users.php?id=3
Then i would like to kill the first cronjob users.php?id=2 I am wondering
if each cron creates a specific processid (PID) through unix and if so,
how can i catch this specific processid?
I have tried the echo $$ command however, i doubt that this command
generates this specific Cron PID.

No comments:

Post a Comment