Mailinglist Archive: opensuse (3349 mails)

< Previous Next >
Re: [SLE] 9.3 cron.daily run time [SOLVED]
  • From: Ken Schneider <suse-list@xxxxxxxxxxxxx>
  • Date: Sat, 07 May 2005 12:16:11 -0400
  • Message-id: <1115482571.25076.25.camel@xxxxxxxxxxxxxxxxx>
On Sat, 2005-05-07 at 17:51 +0200, Anders Johansson wrote:
> On Saturday 07 May 2005 17:39, Scott Leighton wrote:
> > > > And, how do I get cron.daily back to running at a reasonable
> > > > time, like 4am or 5am in the morning?
> > >
> > > touch "with your timestamp" /var/spool/cron/lastrun/cron.daily
> >
> > Thanks! That solved it. I did have to use the -t switch on touch,
> > e.g.,
> >
> > touch -t 200505070500 cron.daily
> >
> > Worked like a charm.
>
> I don't think so. That unfortunately doesn't seem to set the correct time
> stamp. Try
>
> find /var/spool/cron/lastrun -name cron.daily -printf "%c\n"
>
> The timestamp you see there is the one that will control when it's run.
>
> So far, the only way I've found to do it correctly is to do
>
> at 5am
> > rm /var/spool/cron/lastrun/cron.daily
> > touch /var/spool/cron/lastrun/cron.daily
> > <ctrl-D>
>
> Make sure atd is running (rcatd start)
>
>
No need to remove the file only touch it. From man touch...

NAME
touch - change file timestamps

SYNOPSIS
touch [OPTION]... FILE...

DESCRIPTION
Update the access and modification times of each FILE to the
current time.


--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998

"The day Microsoft makes something that doesn't suck is probably
the day they start making vacuum cleaners." -Ernst Jan Plugge


< Previous Next >
Follow Ups