[Wolves] Help writing a script file

Peter Cannon peter at cannon-linux.co.uk
Thu May 18 15:04:14 BST 2006


Hi All

Anyone interested in writing a script file? Or giving me an idiots tutorial?

I'd like it to grab the last 10 entries from two logs, combine them into one 
file/email, then email it to me probably via internet rather than local 
delivery.

the locations are

/var/lib/simias/log/adminweb.log
/var/lib/simias/log/web.log

If possible I'd like the format to be something like

adminweb 18.5.2006 14:52
=====================================
Blah blah blah
Blah blah blah
Blah blah blah

web 18.5.2006 14:53
=====================================
Blah blah blah
Blah blah blah
Blah blah blah

I can then setup a cron job. Obviously I'll give the writer full credit.

-- 
Regards
Peter Cannon
FC5 & SuSE10
Jabber:highwayman.turpin at gmail.com
www.cannon-linux.co.uk

"There is every excuse for not knowing
 There is no excuse for not asking"



More information about the Wolves mailing list