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.