shell scripting - automating rotation of files in differentdirectories

2003-06-12 Thread Dave [Hawk-Systems]
have looked at a couple of the ports for log rotation and such, but none seem to come close to the simplicity and complexity of what I am looking for. have user directories and log files in each directory... each user requests to have 1 day ro 30 days of logs made available for them to download

Re: shell scripting - automating rotation of files in differentdirectories

2003-06-12 Thread Matthew D. Fuller
On Thu, Jun 12, 2003 at 02:58:32PM -0400 I heard the voice of Dave [Hawk-Systems], and lo! it spake thus: For example, brutally pseudo script for($i=30; $i0;$1--){ # 30 days is maximum retained for LOG in `ls /users/*/logs/ | grep .$i'`; do # move any of the previous logs

Re: shell scripting - automating rotation of files in differentdirectories

2003-06-12 Thread Jez Hancock
On Thu, Jun 12, 2003 at 02:58:32PM -0400, Dave [Hawk-Systems] wrote: have looked at a couple of the ports for log rotation and such, but none seem to Maybe cronolog could be useful to you: /usr/ports/sysutils/cronolog primarily for web log files... ___