[Mapserver-users] problem with crontab to delete old map images
fx gamoy
fx.gamoy at mapxplore.com
Mon Aug 18 16:09:45 PDT 2003
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0024_01C365E6.31EE4C50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello=20
thanks for yours sugestions=20
all the tests failed
the cron daemon seem to be ok=20
i can 't find any cron log file in order to look for a mystake
fx
----- Original Message -----=20
From: Bruce Bushby=20
To: fx gamoy=20
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=20
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
------=_NextPart_000_0024_01C365E6.31EE4C50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hello </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thanks for yours sugestions =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>all the tests failed</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the cron daemon seem to be ok =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i can 't find any cron log file in =
order to look=20
for a mystake</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>fx</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dbruce.bushby at wol.co.za =
href=3D"mailto:bruce.bushby at wol.co.za">Bruce=20
Bushby</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dfx.gamoy at mapxplore.com=20
href=3D"mailto:fx.gamoy at mapxplore.com">fx gamoy</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, August 18, 2003 =
9:45=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Mapserver-users] =
problem=20
with crontab to delete old map images</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=3D122593020-18082003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>perhaps try single quotes:</FONT></SPAN></DIV>
<DIV><SPAN class=3D122593020-18082003><FONT size=3D2><FONT =
color=3D#0000ff><FONT=20
face=3DArial>00 20 * * * <SPAN =
class=3D122593020-18082003>'</SPAN>find=20
/web/mapimage -name "*.png" -exec rm -f {} \;<SPAN=20
class=3D122593020-18082003>'</SPAN><SPAN class=3D122593020-18082003> =
>>=20
/tmp/cronmap.log 2>&1</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D122593020-18082003><FONT size=3D2><FONT =
color=3D#0000ff><FONT=20
face=3DArial><SPAN=20
=
class=3D122593020-18082003></SPAN></FONT></FONT></FONT></SPAN> </DIV=
>
<DIV><SPAN class=3D122593020-18082003><FONT size=3D2><FONT =
color=3D#0000ff><FONT=20
face=3DArial><SPAN class=3D122593020-18082003>failing that, try get a =
log of what=20
is going on:</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D122593020-18082003>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2>00 20 * * =
* find=20
/web/mapimage -name "*.png" -exec rm -f {} \;<SPAN=20
class=3D122593020-18082003> >> /tmp/cronmap.log=20
2>&1</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003>failing that, go back to=20
basics:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003>41 22 * * * /bin/date >>=20
/tmp/crondate.log</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003>and confirm cron is=20
working.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D122593020-18082003></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
=
class=3D122593020-18082003></SPAN></FONT></FONT></FONT> </DIV></SPAN=
></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu]<B>On Behalf Of =
</B>fx=20
gamoy<BR><B>Sent:</B> Monday, August 18, 2003 10:08 PM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> =
[Mapserver-users]=20
problem with crontab to delete old map images<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>hello</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i have added a daily job with =
crontab -e=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>00 20 * * * find /web/mapimage =
-name "*.png"=20
-exec rm -f {} \;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but nothing occur at =
20:00.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>i use a debian woody package and =
cron seem to=20
be well started</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>which time cron use? universal? =
(date -u) or=20
local (date)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thanks for any =
suggestion</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>fx</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0024_01C365E6.31EE4C50--
More information about the MapServer-users
mailing list