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
>
Received on Wed Jun 22 2005 - 01:17:56 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Jul 01 2005 - 12:00:03 MDT