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

fx gamoy fx.gamoy at mapxplore.com
Mon Aug 18 19:42:19 EDT 2003


C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_000C_01C365EA.BEFF2250
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

nothing in /var/log
and nothing about logfile with find / -name cron
thanks=20
fx
  ----- Original Message -----=20
  From: Bruce Bushby=20
  To: fx gamoy=20
  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=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_000C_01C365EA.BEFF2250
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>nothing in /var/log</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and nothing about logfile with find / =
-name=20
cron</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thanks </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 =
11:37=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=3D700053722-18082003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Should be in /var/log</FONT></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> fx gamoy=20
    [mailto:fx.gamoy at mapxplore.com]<BR><B>Sent:</B> Tuesday, August 19, =
2003=20
    1:10 AM<BR><B>To:</B> <A=20
    =
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>;=20
    <A=20
    =
href=3D"mailto:bruce.bushby at wol.co.za">bruce.bushby at wol.co.za</A><BR><B>S=
ubject:</B>=20
    Re: [Mapserver-users] problem with crontab to delete old map=20
    images<BR><BR></FONT></DIV>
    <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=20
    look 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]=20
      problem 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 * * *&nbsp;<SPAN =
class=3D122593020-18082003>'</SPAN>find=20
      /web/mapimage -name "*.png" -exec rm -f&nbsp; {} \;<SPAN=20
      class=3D122593020-18082003>'</SPAN><SPAN =
class=3D122593020-18082003> &gt;&gt;=20
      /tmp/cronmap.log =
2&gt;&amp;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>&nbsp;</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=20
      what 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 =
* *=20
      *&nbsp;find /web/mapimage -name "*.png" -exec rm -f&nbsp; {} =
\;<SPAN=20
      class=3D122593020-18082003> &gt;&gt; /tmp/cronmap.log=20
      2&gt;&amp;1</SPAN></FONT></FONT></FONT></DIV>
      <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =

      =
class=3D122593020-18082003></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =

      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 =

      class=3D122593020-18082003>41 22&nbsp;* * * /bin/date &gt;&gt;=20
      /tmp/crondate.log</SPAN></FONT></FONT></FONT></DIV>
      <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =

      =
class=3D122593020-18082003></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =

      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 =

      =
class=3D122593020-18082003></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN =

      =
class=3D122593020-18082003></SPAN></FONT></FONT></FONT>&nbsp;</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>=20
        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=20
        "*.png" -exec rm -f&nbsp; {} \;</FONT></DIV>
        <DIV><FONT face=3DArial size=3D2>but nothing occur at =
20:00.</FONT></DIV>
        <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
        <DIV><FONT face=3DArial size=3D2>i use a debian woody package =
and cron seem=20
        to be well started</FONT></DIV>
        <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
        <DIV><FONT face=3DArial size=3D2>which time cron use? universal? =
(date -u)=20
        or 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>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOC=
KQUOTE></BODY></HTML>

------=_NextPart_000_000C_01C365EA.BEFF2250--





More information about the mapserver-users mailing list