[Wolves] Help writing a script file

Simon Morris simon.morris at cmtww.com
Thu May 18 16:27:50 BST 2006


On Thu, 2006-05-18 at 16:23 +0100, Simon Morris wrote:
> On Thu, 2006-05-18 at 16:15 +0100, Peter Cannon wrote:
> > On Thursday 18 May 2006 15:27, Simon Morris wrote:
> >
> > This is what I wrote and saved it as iFolder-Log-script.sh
> >
> > Then from a terminal over ssh did ./iFolder-Log-script.sh the
> > terminal gave
> > no errors but it hasn't sent me a mail? I did a test mail from the
> > terminal
> > and that came through fine any ideas whats wrong?
> >
> > ---START SCRIPT---i-have-not included-this-line------
> >
> > #!/bin/bash
> >
> > MAILTO=peter at cannon-linux.co.uk
> >
> > mail -s "iFolder-Simias Logs" "${EMAILTO}" << EOF


Ah-HA!!! you fell for my deliberate mistake

Look at the variable name you used to store your email address and then
look at the variable name you fed to the mail command.

*Gives Peter a huge foam E*

~sm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mailman.lug.org.uk/pipermail/wolves/attachments/20060518/1254debf/attachment.bin


More information about the Wolves mailing list