<html>
<P>Hi George</P>
<P>It's certainly a more sensible way of doing this so many thanks for that as I'll probably adopt it. My cron job was something of a kludge because I could see how it would work but not what the alternatives were.</P>
<P>As for the syntax I thought it was a single = for testing variables and double = for testing absolutes although thinking about it this morning I wonder whether == measures a numeric value only.</P>
<P>Unfortuantely not near my linuxbox in the daytime (actually this is a good thing as I'd not get any work done otherwise) so will have another play tonight.</P>
<P>Thanks</P>
<P>Simeon<BR>
<BR>
<BR>
<BR>
<B>On Thu Jan 26 1:27 , George <george@goatadsl.co.uk> sent:<BR>
<BR>
</P></B>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: &#35;fbfbfb 2px solid; MARGIN-RIGHT: 0px">Simeon Farrington wrote:<BR>
<FONT color=red>> OK guys I'm not remotely a coder by any stretch of the imagination as </FONT><BR>
<FONT color=red>> you will see below</FONT><BR>
<BR>
Using a cron'd script seems to be an unusual way of trying to do this. <BR>
As procmail is already "doing stuff" when mail arrives it might be <BR>
easiest to add a rule to that to do the notification, something like...<BR>
<BR>
:0 c<BR>
*<BR>
| beep<BR>
<BR>
There should also be nothing stopping the normal mail notification apps <BR>
working, might just be you have to change a path somewhere.<BR>
<BR>
I'm afraid I've not done much shell programming so can't see for sure <BR>
where the code you've tried to write is wrong but on line 4 you've got <BR>
== for comparison and I think it might be a single =.<BR>
<BR>
George<BR>
<BR>
_______________________________________________<BR>
SC mailing list<BR>
<A href="javascript:top.opencompose('SC@mailman.lug.org.uk','','','')">SC@mailman.lug.org.uk</A><BR>
<A href="parse.pl?redirect=http%3A%2F%2Fmailman.lug.org.uk%2Fmailman%2Flistinfo%2Fsc" target=_blank><FONT color=red>http://mailman.lug.org.uk/mailman/listinfo/sc</FONT></A><BR>
--<BR>
This email has been verified as Virus free<BR>
Virus Protection and more available at <A href="parse.pl?redirect=http%3A%2F%2Fwww.plus.net" target=_blank><FONT color=red>http://www.plus.net</FONT></A><BR>
</BLOCKQUOTE>
</html><BR>