Re: [squid-users] The command, squid -k rotate put in cron job is not working, anybody please help

From: Guido Serassio <serassio@dont-contact.us>
Date: Tue, 14 Aug 2001 13:17:00 +0200

Hi,

Il 13.03 14/08/2001 Chok Meng ha scritto:
>Hi All
>
>I need some help on the above matter. My organisation
>is using Linux Mandrake rel. 5.3 (Festen), kernel
>2.0.36. This Linux server is providing proxy service
>to the organisation. I am not able to execute squid -V
>to check its version. Nevertheless, my problem is as
>follow:
>
>1. I created a script file called squidrotate.sh and
>put the script file in /var/log/squid directory:
>#!/bin/bash
>squid -k rotate

Put the full path to squid executable on your script.

Guido

>2. Next, I put an entry in root's cron tab with the
>following:
>16 18 * * * /var/log/squid/squidrotate.sh
>
>3. When I check my Mail entry for root, the following
>appear:
>
> >From root Tue Aug 14 18:16:03 2001
>Return-Path: <root>
>Received: (from root@localhost)
> by proxy (8.8.7/8.8.7) id SAA16033
> for root; Tue, 14 Aug 2001 18:16:02 +0800
>Date: Tue, 14 Aug 2001 18:16:02 +0800
>Message-Id: <200108141016.SAA16033@proxy>
>From: root@proxy (Cron Daemon)
>To: root@proxy
>Subject: Cron <root@proxy>
>/var/log/squid/squidrotate.sh
>X-Cron-Env: <SHELL=/bin/sh>
>X-Cron-Env: <HOME=/root>
>X-Cron-Env: <PATH=/usr/bin:/bin>
>X-Cron-Env: <LOGNAME=root>
>
>Usage: /usr/bin/squid {start|stop|status|restart}
>
> From point 3, the cron tab did not execute my squid
>command due its usage.
>
>However, when I execute ./squidrotate.sh from
>/var/log/squid directory online, it works fine i.e.
>the log files are rotated. So, I am wondering what is
>wrong? Please help.
>
>Fu Chok Meng
>Systems Administrator
>Tel: (65)4506120
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Y! Pages - Search or browse for business listings.
>http://yp.yahoo.com.sg/

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
Tel. : +39.011.610749
E-mail: serassio@interfree.it
         serassio@libero.it
WWW: http://www.serassio.it
Received on Tue Aug 14 2001 - 05:17:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:37 MST