On Sun, 1 Sep 2002, Bertrand Leroy wrote:

> I do have a wee issue though, nothing to do with the program itself, but
> with my ISP ....
> 
> The access log is saved in the 'normal' folder with the name access_log
> ...... however, as I realised today, when a new month starts, the previous
> month's log is then saved under access_log.1 and a new (at first empty)
> access_log file is created ..... I would imagine that on the 1st of October,
> the september log will be saved under access_log.2, the october log
> access_log.3 etc .... how would I go about to collate all the logs? ... I am
> thinking of the following:
> - create a new file called master_access_log
> - loop through all the files in the folder
> - i = 1, copy the contents of access_log.i in the master_access_log file, do
> i+1, until no file found error .. then copy contents of access_log at the
> bottom of the contents of the file master_access_log ..... does this make
> sense? .... does anybody know how to do this?
> 

Analog can read more than one logfile at once. Use

LOGFILE access_log*

to read all the logs.

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to