[RndTbl] How to modify file times?

Sean Walberg sean at ertw.com
Fri Jun 13 12:24:36 CDT 2008


touch -m lets you change the mtime...

touch -m -t 06010000 foo

Sean

On Fri, Jun 13, 2008 at 12:00 PM, John Lange <john at johnlange.ca> wrote:

> I love SUSE but I can't stand the way it implements cron.
>
> Instead of using the usual /etc/crontab file to schedule cron.daily,
> weekly etc, it creates files in /var/spool/cron/lastrun and uses the
> file dates to schedule it's next run.
>
> And it's completely arbitrary as to when things run. If you create
> something in cron.weekly, it will execute it immediately and then
> continue to execute it at that same time every week.
>
> That doesn't sound so bad until you realize it uses the change
> timestamp, not the modify or access timestamp.
>
> And I'll give you one guess which timestamp you can't manually override
> with touch? You guessed it, it's the change timestamp.
>
> So if you want to change your scripts so that they run next Sunday at
> 4am, you have to change your system clock back to last Sunday and
> "touch" the files.
>
> I'm really hoping someone has a better solution than this...
>
> --
> John Lange
> www.johnlange.ca
>
>
> _______________________________________________
> Roundtable mailing list
> Roundtable at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/roundtable
>



-- 
Sean Walberg <sean at ertw.com> http://ertw.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.muug.mb.ca/pipermail/roundtable/attachments/20080613/a96c2e8d/attachment.html 


More information about the Roundtable mailing list