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 &lt;<a href="mailto:john@johnlange.ca">john@johnlange.ca</a>&gt; 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&#39;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&#39;s next run.<br>
<br>
And it&#39;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&#39;t sound so bad until you realize it uses the change<br>
timestamp, not the modify or access timestamp.<br>
<br>
And I&#39;ll give you one guess which timestamp you can&#39;t manually override<br>
with touch? You guessed it, it&#39;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>
&quot;touch&quot; the files.<br>
<br>
I&#39;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 &lt;<a href="mailto:sean@ertw.com">sean@ertw.com</a>&gt; <a href="http://ertw.com/">http://ertw.com/</a>