Re: [squid-users] Setting a cron job at system startup

From: Santosh Rani <[email protected]>
Date: Mon, 13 Aug 2007 21:21:08 +0530

Sir,
(Sendmail is not installed)
When I pass the 'make' command to anacron, I get the following error;

/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" runjob.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > runjob.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" readtab.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > readtab.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" matchrx.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > matchrx.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" main.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > main.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" log.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > log.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" lock.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > lock.d"
/bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\"
-DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" gregor.c \
        | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > gregor.d"
cc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\"
-DANACRONTAB=\"/etc/anacrontab\" gregor.c -o gregor.o

Regards

On 07/08/07, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> On tor, 2007-08-02 at 21:07 +0530, Santosh Rani wrote:
> > I have setup cron under Cygwin to update my malware list on the Squid
> > that is running on Windows.
> > I want to setup a cron job which rotates the Squid log files when the
> > system is started up in the morning for the first time.
>
> For running daily/weekly tasks on machines which is turned off from time
> to time anacron is a good choice. It's like cron but doesn't assume the
> machine is always on and will start the jobs which should have run while
> the machine was off when it starts.
>
> The setup consists of three parts:
>
> a) anacron, with it's anacrontab describing the tasks to run
> b) cron or another scheduler, with a crontab entry running anacron once
> per day at a suitable time.
> c) A boot action running anacron once at boot.
>
> Note: The scheduler in Windows is a usable substitute for cron, and also
> allows you to set up boot actions. Not sure it also deals with jobs
> which should have been run while the machine was off.
>
> Regards
> Henrik
>
>
Received on Mon Aug 13 2007 - 09:51:13 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT