Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] 9.3 cron daily question
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Mon, 28 Nov 2005 02:59:35 +0000 (UTC)
  • Message-id: <200511280359.21777.andjoh@xxxxxxxxxx>
On Monday 28 November 2005 03:25, Scott Leighton wrote:
> On Sunday 27 November 2005 5:28 pm, Carlos E. R. wrote:
> > No, only this change:
> >
> >
> > test -e $SPOOL/$BASE && {
> > case $BASE in
> > cron.hourly) TIME="-cmin +60 -or -cmin 60" ;;
> > cron.daily) TIME="-cmin +1440 -or -cmin -1440" ;;
> > cron.weekly) TIME="-ctime +7 -or -ctime 7" ;;
> > cron.monthly) NOW=`date +%s`
> > ....
>
> You might want to check the signs, your's does not at all
> match mine....
>
> test -e $SPOOL/$BASE && {
> case $BASE in
> cron.hourly) TIME="-cmin +60 -or -cmin 60" ;;
> cron.daily) TIME="-cmin +1440 -or -cmin 1440" ;;

argh, I missed that. Yes Carlos, your -1440 tells find to find all files
changed *less than* 1440 minutes ago and your +1440 to find all files changed
more than 1440 minutes ago. So the only files left untouched by your change
are ones changed exactly 1440 minutes ago


< Previous Next >