I need to set-up a cron job via the usual crontab on a Linux server. However, I'd like to set the job to activate once per month, and on the first Monday of each month.
Anyone know what I have to specify in the schedule parameters to achieve this? Is it possible?
Cron help needed
I'm certainly no expert but thinking laterally, how about this:
15 1 1-6 * 1 /script
...which would be 1.15am on every Monday that falls between the first and sixth day of the month. Don't take my word for it though; get an expert to confirm that it's okay
Cron help needed
That seems nice n' logical. I'll give it a whirl to see if it works. Cheers Roy.
Cron help needed
I'll give it a whirl to see if it works.
...on your head be it

webmin
I use a program called webmin, it allows you to log in to your server with a web interface, and create cron jobs.
I'm not sure of the specific cron syntax for command line, but you can just type. "man cron" to get the manual for how to use it.
Wes
Cron help needed
...which would be 1.15am on every Monday that falls between the first and sixth day of the month. Don't take my word for it though; get an expert to confirm that it's okay
But you're stuffed if the first day of the month is a Tuesday

Cron help needed
Yeh, figured that one out!
Got distracted anyway, and it transpires that it can be resolved another way, a lot easier. Cheers anyway fellas.
And yes, Webmin is essential. Prefer to do most stuff in the command line, to keep me sharp, but Webmin's great for routine stuff.
Cron help needed
But you're stuffed if the first day of the month is a Tuesday
Okay, okay :roll:


Webmin is great when you first try to get to grips with running a server, but I am assured by experts in their field that it is inherently insecure due to the way that it mis-uses super-user privileges. Also, it is hardly the most intuitive piece of interface software going as it assumes that the user knows what they are doing (in which case they would probably do everything via the CLI anyway). Personally, I found it more difficult to use that just learning to do everything via the shell and keeping a few notes about where everything is located within the document tree.
Cron help needed
Thanks Roy, will give it a go.