I have created crontab and running state called Morning and Night
crontab -l
10 6 * * * root /usr/local/bin/zmpkg.pl Morning
10 20 * * * root /usr/local/bin/zmpkg.pl Night
crond is running and cron.allow is already created
but the running state is not changed after the time passed.
do i need to run or create anything else to make cron working?
thanks.
crontab and running state not working
Hi ynn
If my memory serves me right then what you need to change is the following. :
The changes are the little ' surrounding the state name.
If my memory serves me right then what you need to change is the following. :
Code: Select all
10 6 * * * root /usr/local/bin/zmpkg.pl 'Morning'
10 20 * * * root /usr/local/bin/zmpkg.pl 'Night'
Best Regards
Tom Stage
Tom Stage
In most distros, but not installed by default (certainly not Debian).
My reason for mentioning Ubuntu is because that uses only sudo, not su at all - and it's a common problem that crops up in many web forums for people coming from other distros to it. This would've applied to crontab as in most distros you'd use root's crontab, or zmuser's crontab to invoke zmpkg.pl to change states, and using root's crontab doesn't work with ubuntu (afaik) simply because it doesn't have a root account.
But, as you can see, I was wrong.
My reason for mentioning Ubuntu is because that uses only sudo, not su at all - and it's a common problem that crops up in many web forums for people coming from other distros to it. This would've applied to crontab as in most distros you'd use root's crontab, or zmuser's crontab to invoke zmpkg.pl to change states, and using root's crontab doesn't work with ubuntu (afaik) simply because it doesn't have a root account.
But, as you can see, I was wrong.