[Wolves] Help writing a script file

Simon Morris simon.morris at cmtww.com
Thu May 18 16:24:02 BST 2006


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

Comment out the line above and replace with 

cat > foo.txt <<EOF

and run the script again - do you see what you expected in the foo.txt
file?

Also - if you are running postfix as your MTA run postqueue -p and see
if the mail is stuck for some reason.

Thanks

-------------- 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/6aecbcd2/attachment.bin


More information about the Wolves mailing list