[Wolves] Help writing a script file
Peter Cannon
peter at cannon-linux.co.uk
Thu May 18 15:36:34 BST 2006
On Thursday 18 May 2006 15:05, Simon Morris wrote:
> How about
>
> -----START SCRIPT-----
>
> #!/bin/bash
>
> MAILTO=simon.morris at cmtww.com
?? You want my log mails?
> MAILTO2=pete at somedomain.com
>
> mail -s "This is the subject line" "${EMAILTO}" -c "${EMAILTO2}" << EOF
PS see my reply to James mail theres an extra log file :(
> adminweb 18.5.2006 14:52
Um, sorry to be Mr Picky
Adminweb is the Log Title
18.5.2006 is "Today's Date"
14:52 is "Today's Time"
> =====================================
>
> `tail -n 10 /var/lib/simias/log/adminweb.log`
>
> web 18.5.2006 14:53
> =====================================
>
> `tail -n 10 /var/lib/simias/log/web.log`
>
> EOF
>
> -----END SCRIPT-----
>
> ~sm
Do I include the ~sm ? or is that your sig? if so that's OK.
--
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