The first part: tack on "> /var/log/cron.kill.log 2>>&1" (sans quotes) to the end of your cron script. This will redirect any errors to the file /var/log/cron.kill.log for you to analyze.
What I think is happening is that the cron script A) unable to find the "kill" program, B) the cron script does not have permissions to kill the job, or C) the cron job isn't getting the right PID.
Hi,
Do i have to include "> /var/log/cron.kill.log 2>>&1" in crontab file?
I tried doing that but it didn't kill the script?
i gave like this:-crontab -e
18 22 * * * kill processid.
I can't give sudo kill in crontab and i can't give password also.(I tried giving but didn't work)
process id is taken correctly.
I checked crin file in that it was given like ORPHAN (no passwd entry)
I don't have root permission.
what are the otherways so that i can stop process without root permissions?
with regards
Archana