[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] shell script challenge
* Simon Brown (simon [at] cliffestones.demon.co.uk) wrote:
> Hi,
>
> A quick and simple challenge for all the shell scripting gurus out there.
> Using any of the shells available for Debian, I would like to acheieve the
> following to archive my mailing lists. All of my mailing list mail goes
> into a directory called lists with the file being the list name, so this
> list is lists/shef-lug [at] list.sheflug.org.uk I'll be running the script once
> a month and I'd like it to move the files into a directory called "last
> month" The files from the month before that are already there should then
> be moved into a directory called archive, gzipped and then put into a sub
> directory according to month year eg archive/2003/January/shef-lug [at] list.
> sheflug.org.uk.gz I'll be running it with cron. I've tried it before but
> only failed miserably. Any hints?.............
Simon,
Have a look at the following:
http://www.linuxbrit.co.uk/downloads/mail_rotate_makefile
I'm just a linux newbie but I think this is what you might be looking for.
Also,have a look at the "Pabs" link on Tom's website--there is another
script there which might be of use.
HTH,
Jeff
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.