Re: Crontabs not working
Posted: Thu Jan 16, 2014 8:55 am
The script appears to be a note in a forum - nothing wrong with that per se but are you sure you've copied it correctly?
Have you set the permissions for the script to be execuable?
Have you tried running the script from the command line?
As the user you are attempting to run under cron? So if you updated root's crontab, then run the script manually at root (or whatever).
Is the user *not* root? If you run as the pi user then you might see something like "cannot create /var/log/oscam.check: Permission denied", which might well be a clue for you. The script I Googled writes to /var/log, for which a general user would not usually be able to write. Have you addressed this in any way?
cron does not have a full environment and all paths to executables, logs etc should be fully defined, unless you are confident that any abrreviations are indeed valid.
Many of the above will apply if the script if executed under rc.local as suggested, or will be variations of the same.
Have you set the permissions for the script to be execuable?
Have you tried running the script from the command line?
As the user you are attempting to run under cron? So if you updated root's crontab, then run the script manually at root (or whatever).
Is the user *not* root? If you run as the pi user then you might see something like "cannot create /var/log/oscam.check: Permission denied", which might well be a clue for you. The script I Googled writes to /var/log, for which a general user would not usually be able to write. Have you addressed this in any way?
cron does not have a full environment and all paths to executables, logs etc should be fully defined, unless you are confident that any abrreviations are indeed valid.
Many of the above will apply if the script if executed under rc.local as suggested, or will be variations of the same.