touch -m lets you change the mtime...<br><br>touch -m -t 06010000 foo <br><br>Sean<br><br><div class="gmail_quote">On Fri, Jun 13, 2008 at 12:00 PM, John Lange <<a href="mailto:john@johnlange.ca">john@johnlange.ca</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I love SUSE but I can't stand the way it implements cron.<br>
<br>
Instead of using the usual /etc/crontab file to schedule cron.daily,<br>
weekly etc, it creates files in /var/spool/cron/lastrun and uses the<br>
file dates to schedule it's next run.<br>
<br>
And it's completely arbitrary as to when things run. If you create<br>
something in cron.weekly, it will execute it immediately and then<br>
continue to execute it at that same time every week.<br>
<br>
That doesn't sound so bad until you realize it uses the change<br>
timestamp, not the modify or access timestamp.<br>
<br>
And I'll give you one guess which timestamp you can't manually override<br>
with touch? You guessed it, it's the change timestamp.<br>
<br>
So if you want to change your scripts so that they run next Sunday at<br>
4am, you have to change your system clock back to last Sunday and<br>
"touch" the files.<br>
<br>
I'm really hoping someone has a better solution than this...<br>
<br>
--<br>
John Lange<br>
<a href="http://www.johnlange.ca" target="_blank">www.johnlange.ca</a><br>
<br>
<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sean Walberg <<a href="mailto:sean@ertw.com">sean@ertw.com</a>> <a href="http://ertw.com/">http://ertw.com/</a>