My cron job in my cpanel looks like this
cd public_html/Staging/ff; perl sendmail.pl >/dev/null
The sendmail.pl looks like this
my $php = `php decode.php`;
The decode.php looks like this
$user = "Hello";
$fh = fopen("output.txt","a+");
fwrite($fh,$user."\n");
fclose($fh);
output.txt
file gets on updating every second, even though i've called it for 1 hour.
Now how do i stop this job based in PID?
Where should i find PID?
How do i find all cron jobs running right now? and stop it at once?
I wanted to call sendmail.pl
every hour.
Since you have * in minute it now runs every minute. Try putting a value there (for instance 0) to run it every hour on that minute number. And only have star in hour.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.