4.12-2 Solaris buglet

Julian Field mailscanner at ecs.soton.ac.uk
Mon Feb 3 16:30:33 GMT 2003


Jeff,

Here's a new check_mailscanner for you to try out.

I haven't gone for a "uname -s" approach yet, as I don't know the exact
string they all produce (e.g. does HP-UX say "HP", "HPUX" or "HP-UX"?).

But using "fgrep >/dev/null" instead of "fgrep -q" seems to work okay, if
not quite as fast as just running "uname -s" once. But I am not remotely
interested in the speed of this script.

At 14:53 03/02/2003, you wrote:
>Julian,
>    I upgraded from 4.11-1 to 4.12-2 today, Solaris 8, and got
>complaints from my startup script:
>
>/bin/fgrep: illegal option -- q
>
>I dug around and found that bin/check_mailscanner has a define at
>the top of FGREP=/bin/fgrep.  Then a few lines down, the script
>says:
>
>if $UNAME | $FGREP -q "SunOS" ; then
>
>which causes the complaints.  How about just a test against "uname -s"
>instead?
>
>UNAME=`/bin/uname -s`
>if [ $UNAME = "SunOS" ]; then
>
>My quick fix to the problem was to change the definition of
>FGREP to use /usr/local/bin/fgrep, the GNU version that supports -q.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_mailscanner
Type: application/octet-stream
Size: 3294 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20030203/fe7105ad/check_mailscanner.obj
-------------- next part --------------
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support


More information about the MailScanner mailing list