[Mapserver-users] problem with crontab to delete old map images

Siki Zoltan siki at bme-geod.agt.bme.hu
Tue Aug 19 14:37:31 EDT 2003


Is the crond running?
Check 
ps -ef | grep crond

It shoud be started from /etc/rc or /etc/rc.local

On Tue, 19 Aug 2003, fx gamoy wrote:

> nothing in /var/log
> and nothing about logfile with find / -name cron
> thanks 
> fx
>   ----- Original Message ----- 
>   From: Bruce Bushby 
>   To: fx gamoy 
>   Sent: Monday, August 18, 2003 11:37 PM
>   Subject: RE: [Mapserver-users] problem with crontab to delete old map images
> 
> 
>   Should be in /var/log
>     -----Original Message-----
>     From: fx gamoy [mailto:fx.gamoy at mapxplore.com]
>     Sent: Tuesday, August 19, 2003 1:10 AM
>     To: mapserver-users at lists.gis.umn.edu; bruce.bushby at wol.co.za
>     Subject: Re: [Mapserver-users] problem with crontab to delete old map images
> 
> 
>     hello 
>     thanks for yours sugestions 
>     all the tests failed
>     the cron daemon seem to be ok 
>     i can 't find any cron log file in order to look for a mystake
>     fx
>       ----- Original Message ----- 
>       From: Bruce Bushby 
>       To: fx gamoy 
>       Sent: Monday, August 18, 2003 9:45 PM
>       Subject: RE: [Mapserver-users] problem with crontab to delete old map images
> 
> 
>       perhaps try single quotes:
>       00 20 * * * 'find /web/mapimage -name "*.png" -exec rm -f  {} \;' >> /tmp/cronmap.log 2>&1
> 
>       failing that, try get a log of what is going on:
>       00 20 * * * find /web/mapimage -name "*.png" -exec rm -f  {} \; >> /tmp/cronmap.log 2>&1
> 
>       failing that, go back to basics:
>       41 22 * * * /bin/date >> /tmp/crondate.log
> 
>       and confirm cron is working.
> 
> 
>         -----Original Message-----
>         From: mapserver-users-admin at lists.gis.umn.edu [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of fx gamoy
>         Sent: Monday, August 18, 2003 10:08 PM
>         To: mapserver-users at lists.gis.umn.edu
>         Subject: [Mapserver-users] problem with crontab to delete old map images
> 
> 
>         hello
>         i have added a daily job with crontab -e 
>         00 20 * * * find /web/mapimage -name "*.png" -exec rm -f  {} \;
>         but nothing occur at 20:00.
> 
>         i use a debian woody package and cron seem to be well started
> 
>         which time cron use? universal? (date -u) or local (date)?
>         thanks for any suggestion
>         fx
> 
> 




More information about the mapserver-users mailing list