LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Andreja Zivkovic <andy@zivkotech.net.au>
  To  : Robert Wuttke <robert.wuttke@disc.com.au>
Lyndon Zimmermann <lyndon.zimmermann@adelaide.edu.au>
linuxsa <linuxsa@linuxsa.org.au> Date: Mon, 6 Nov 2000 12:50:23 +1030

RE: Cron

using 'find' is another way of doing this.

make a script that gets run by cron that has a line similar to the
following:

find /tmp/images -amin +60 -exec 'rm {}'


This assumes your tempimages are saved under /tmp/images. Also, I have not
tested this, and i've never before actually used the -amin or -exec
parameters, so they may not work properly. check find's man page for info.

Hope this gets you in the right direction.

Andy

> -----Original Message-----
> From: Robert Wuttke [mailto:robert.wuttke@disc.com.au]
> Sent: Monday, 6 November 2000 12:18 PM
> To: Lyndon Zimmermann; linuxsa
> Subject: Re: Cron
>
>
> Lyndon,
>
> One way is to have a file and each time the cron job is run, each file in
> the temp dir is checked against the file. If the file is there, remove it
> from temp and the file, otherwise add it.
>
> Run this each hour.
>
> Could use gdbm for this (great gnu database tool).
>
> man gdbm
>
> If the problem is cron itself, check out the man page, haven't
> used this for
> awhile and don't have a box in front of me to make I don't BS you....
>
> Rob.
>
> ----- Original Message -----
> From: "Lyndon Zimmermann" <lyndon.zimmermann@adelaide.edu.au>
> To: "linuxsa" <linuxsa@linuxsa.org.au>
> Sent: Monday, November 06, 2000 12:07 PM
> Subject: Cron
>
>
> > Greetings,
> >
> > I'm building an internet mapserver using an open GIS product called
> > (innovatively) MapServer, under RedHat 7.0. I'm a relative newchum to
> > Linux. MapServer generates images and leaves them in  a temp file.  I
> > need to delete these routinely (daily or hourly) but preferably images
> > greater than an hour old.  I'm told cron is the tool but I don't know
> > how to implement.  Any clues?
> >
> > Lyndon Z
> >
> > --
> > Lyndon Zimmermann
> > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA)
> >
> > Biomass Energy Atlas for Australia Co-ordinator
> > University of Adelaide Agronomy and Farming Systems
> > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577
> > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann@adelaide.edu.au
> >
> > Adelaide Uni Bioenergy Website:
> > http://www.gisca.adelaide.edu.au/~lzimmerm/uofabioenergy/bioenergy.html
> > Biomass Energy Atlas Website:
> > http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html
> >
> > --
> > LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on
> irc.linux.org.au
> > To unsubscribe from the LinuxSA list:
> >   mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
> >
> >
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
>   mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page