Dr.Ruud wrote:
Aruna Goke schreef:
actually the script is placed in the /var/log/squid directory and the
unlink is actually deleting the old logs.
however, the output of the system('squid' '-k', 'rotate') is
access.log.0, store.log.0 and these were not included when the unlink
is executed. therefore running the script twice will do the deletion
but i guess running it once suppose to do the job.
You are not acknowledging that you fixed all the bad errors in the
script that John pointed out to you.
Also, at the start put ""/var/log/squid" in a variable like $dir, and
sprinkle it thoughtfully.
I am sorry for not showing the acknowledgement, however, the script
still run the same way after the change.
Though, the script was not giving me error but it only not working
according to my plan, but with John correction it a bit cleaner as a
code but the output is still the same.
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/