4.12-2 Solaris buglet

Spicer, Kevin Kevin.Spicer at BMRB.CO.UK
Mon Feb 3 15:17:53 GMT 2003


IMHO it would be safest to redirect the output of fgrep to /dev/null, then you don't have to worry about command line flags on either uname or fgrep.

> -----Original Message-----
> From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK]
> Sent: 03 February 2003 15:04
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: 4.12-2 Solaris buglet
> 
> 
> Any comments from anyone else on the portability of "uname -s"?
> 
> 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.
> >
> >-----------------------------------
> >Jeff A. Earickson, Ph.D
> >Senior UNIX Sysadmin and Email Guru
> >Information Technology Services
> >Colby College, 4214 Mayflower Hill,
> >Waterville ME, 04901-8842
> >phone: 207-872-3659 (fax = 3076)
> >-----------------------------------
> 
> --
> Julian Field
> www.MailScanner.info
> MailScanner thanks transtec Computers for their support
> 



BMRB International 
http://www.bmrb.co.uk
+44 (0)20 8566 5000
_________________________________________________________________
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance on it is prohibited.  BMRB International Limited 
accepts no liability in relation to any personal emails, or 
content of any email which does not directly relate to our 
business.




More information about the MailScanner mailing list