I've a shell script which calls a Sybase stored procedure to do some functionality. I want to schedule the running of this script by crontab. I'm using Solaris 5.8. When i executed the following command
crontab -l
i got the output as
crontab: can't open your crontab file
How can i schedule the script. I'm not the administrator. How can i unschedule it later as this script is a sample script.
To view syntax on the crontab command, and the crontab file itself (as well as cron facility access controls, etc)...
man crontab
If you want to unschedule your job, either crontab -e, then remove the line containing the job completely, or just comment it out. Else; if that's the only job in your crontab, crontab -r to delete the crontab entirely.
I used the correct synatx and now my crontab file is
50 1 20 2 * /home/dsdev/bdayfinder.sh
But, the script specified above is not getting executed.
I checked the /usr/lib/cron directory. There is no cron.allow file and the username dsdev which i use is not present in cron.deny as well.
I edited the crntab file and included the above mentioned line, saved and came out of the editor. The script which is expected to be triggered at 1:50 is not getting triggered at that time.
I am defining the paths to each executable I use, and then using them as appropriate within the code - that way I do not need to worry about PATH as I'm explicitly defining the absolute path to each executable.