I forgot to say that the command "cat" should appear in front of the text, as follows:
cat /var/log/squid/access.log | /timeconvert.pl > /var/log/squid/access-$(date +%d-%m-%Y).log
I added the file "squidlogconvert" to the "/etc/cron.daily" folder and then issued the "chmod" command. However, I received the following error msg through the Cron Daemon email, which reads as follows:
/etc/cron.daily/squidlogconvert:
/etc/cron.daily/squidlogconvert: line 2: syntax error near unexpected token >'
/etc/cron.daily/squidlogconvert: line 2: cat /var/log/squid/access.log | /timeconvert.pl > '
The same command executes without any problems if issued directly on the command line. Any ideas what went wrong. ??
Thanks,
Samer