Re: [squid-users] Script help

From: Aquileo García Blancas <aquileo@dont-contact.us>
Date: Wed, 22 Jun 2005 17:46:02 -0500

----- Original Message -----
From: "Laurikainen, Tuukka" <t.laurikainen@ibermatica.com>
To: <squid-users@squid-cache.org>
Sent: Wednesday, June 22, 2005 2:17 AM
Subject: RE: [squid-users] Script help

This is not a Squid releated question. Help on scripting can be easily
found from the net (google for scripting guide for example).
I don't know in which language you want to write your script, but in sh
it could be something like this:

#!/bin/sh
TODAY=`date +%d%m%g`
cp dhcp.leases dhcp.leases$TODAY

Regards,

tuukka

> -----Mensaje original-----
> De: Wennie V. Lagmay [mailto:wlagmay@yanbulink.net]
> Enviado el: Wednesday, June 22, 2005 7:54 AM
> Para: squid-users@squid-cache.org
> Asunto: [squid-users] Script help
>
> Hi all,
>
> This is not a direct squid question, however I know that someone can
help
> on
> my problem. I am a System / Network Administrator and not to familiar
with
> scripting, I want to create a simple script that automatically copy
any
> log
> file on a cumulative form. Let say for example I want to copy my
> dhcp.leases
> to dhcp.leases_062205 for today, and for tommorow it should be
> dhcp.leases_062305 and so on. My ovjective is to do this daily or
weekly
> or
> monthly automatically
>
> Thank you very much,
>
> Wennie
>

if you are into sh to do this automatically you can use

$ at script.sh

Regards,

Aquileo
Received on Wed Jun 22 2005 - 16:43:52 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:03 MDT