tags:

views:

204

answers:

2

How do I set up a cronjob that runs every 25th hour?

+8  A: 

Just a guess, but you don't

Best hack off the top of my head: write a script to track the last time it was run, and conditionally run it if it was more than 25 hours ago.

Cron that driver script to run every hour.

timdev
+4  A: 

It would be easier to issue an at command specifying the time and date of the next job when you start the current one but you could simulate that with a cronjob by updating the cronjob entry for the process at the start of the current run (not at the end 'cos then you'd have to take into account the time to run the job).

mas