|
|
 |
Re[2]: FN-FORUM: Tracking MP3 downloads
date posted 1st March 2004 14:33
On 01/03/2004 at 15:19 Paul J White wrote:
>Dom wrote:
>
>> On Monday 01 Mar 2004 2:31 pm, Paul J White wrote:
>>
>>>What would be the simplest way to count the number of times an MP3
>>>file is downloaded? We don't need to know who or when etc. It is the
>>>client's idea to offer original music in return for a donation, but we
>>>want to run a trial to see what % of people are playing fair. Any
>>>thoughts?
>>
>>
>> "grep filename.mp3 /var/log/httpd/access_log | wc --lines"
>>
>That may be simple to you mate, but it may as well be Chinese to me ;-)
That set of commands on one line will give you the number of separate lines=
(ie events) that the file is referenced in the log file.
Presuming you have shell access to the server. So just replace=
filename.mp3 with the actual filename and you'll have the answer you were=
looking for.
Simon
Objective 2000 Ltd
AccessEdit accessible HTML Editor http://www.objective2k.com/AccessEdit
Software Consultancy, Design, Development and Management
http://www.objective2k.com
|
 |
|