Re: [squid-users] Access log file

From: Rash Dar <rasht1978@dont-contact.us>
Date: Tue, 26 Jun 2001 01:47:36 -0700 (PDT)

When I run the command I got the following error
messages :

: root@abc /tmp ; perl -wlne
`s/^(\d+)\.\d+/localtime($1)/e;print` ./squid-log-1
bash: syntax error near unexpected token `s/^(\d+)'
bash: command substitution: line 1:
`s/^(\d+)\.\d+/localtime($1)/e;print'
syntax error at -e line 1, near "."
Search pattern not terminated at -e line 1.

or

: root@abc /tmp ;perl -wlne
`s/^(\d+)\.\d+/localtime($1)/e;print` ./squid-log-1
ksh: syntax error: `(' unexpected

Rash D.
--- Dan Larsson <dl@tyfon.net> wrote:
>
> How can I know the time by looking at the access log
> file?
>
> The times in the access log are as unix timestamps.
>
> perl -wlne 's/^(\d+)\.\d+/localtime($1)/e;print'
> /path/to/access.log
>
>
>
> Regards
> +------
> Dan Larsson | Tel: +46 8 550 120 21
> Tyfon Svenska AB | Fax: +46 8 550 120 02
> GPG and PGP keys | finger dl@hq1.tyfon.net
>
>
>

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Received on Tue Jun 26 2001 - 02:47:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:51 MST