----- Original Message ----- 
From: "Laurikainen, Tuukka" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
> 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


Reply via email to