Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
crontab
Name: aboor Date: November 7, 2002 at 19:47:47 Pacific OS: solaris 8 CPU/Ram: 10
Comment:
I need to setup a cron job , that job should run only on every month end sunday. I run as follows but it run every sunday 45 07 24-30 11,12 1 sh /online.txt
Name: jimbo Date: November 7, 2002 at 22:09:21 Pacific
Reply:
The only thing i noticed was that you are using a 1 for sunday. I believe "0" is sunday. Try this instead:
45 7 24-30 * 0 sh /online.txt
-jim
0
Response Number 2
Name: kaboorvam Date: November 10, 2002 at 17:40:35 Pacific
Reply:
HI sorry i give the monday script but any way for the monday also i have the same script but it never run.
I also try the above script for sunday it runs every sunday. but i need only on month end sunday rds a.k
0
Response Number 3
Name: jimbo Date: November 11, 2002 at 11:27:40 Pacific
Reply:
As far as the script that never runs on monday, make sure it is executable. Also have a look at /var/cron/log for errors. The script above should only run on sundays at the end of the month since days 24-30 are specified.
-jim
0
Response Number 4
Name: Mark M Date: November 12, 2002 at 03:38:00 Pacific
Reply:
As above, do chmod+x to your script to make sure it's executable. also just specidy the full path to your script eg: /path/to/script rather than using sh. You can specify sh with #!/bin/sh in your script on the first line.
0
Response Number 5
Name: kaboorvam Date: November 13, 2002 at 00:46:30 Pacific
Reply:
Hi, I run the scripts as follows 00 21 24-30 * 0 sh /offline.txt but this job runs every sunday. It never run on end of the month. I dont think path is problem, because if i run manually for some other day ths script will run.
My requiremets is this job should run only on month end sunday
Summary: Hi All, Unfortunately I have deleted my crontab file (crontab -r) and don't know how to recover it? I have no backup file... Does anyone know, how to? Thanks in advance! BB ...
Summary: I have a role (RBAC)account set up. When I su - rbac_account and schedule jobs with crontab, none of my schedule jobs start up. I am only using commands that I am entitled to. I am using the pcfsh ...