John,

This should do it:
   wget proto://server.address/access.log.`date +%Y-%m-%d`

I'm assuming the host where wget will be executed has the same date/time
zone and are synced.

Regards,

-Urivan Flores-Aaaib


==============Original message text===============
On Sat, 07 Apr 2007 20:17:05 +0100 John Oliver wrote:

I'd like to run webalizer for a friends' site that's hosted somewhere
else.  We have ftp access only... no ssh.  Every day, at different
times, the current access_log gets renamed to something like
access.log.2007-04-06  Since this doesn't happen at predictable times, I
can't wget access_log at 2 minutes till, so I need to grab
access.log.2007-04-06 today, access.log.2007-04-07 tomorrow, and so on.

How can I tell pass the changing date along to wget?

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ **        
                                                             *
***********************************************************************


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
===========End of original message text===========



Urivan A. Flores Saaib
CiberLinux Networking
Email: [EMAIL PROTECTED]
Web: www.ciberlinux.net



-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to