[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Log messages
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Log messages
- From: shea_greg (at) emc.com
- Date: Wed, 15 Aug 2007 09:09:47 -0400
- Cc: <shea_greg (at) emc.com>
- References: <081420072020.21816.46C20EA1000CFCA9000055382213539653089BCB0E0A089C (at) comcast.net> <20070814203819.GB15425 (at) hswn.dk> <9386A1ED977B3F448D2B2A38E7FCAB7806717CF4 (at) CORPUSMX30A.corp.emc.com> <20070815071150.GA29812 (at) hswn.dk>
- Thread-index: AcffC82wlpPKJiWYS8qIfR3ozPFQ8QAMJX63
- Thread-topic: [hobbit] Log messages
> > The temp is the temperature.sh (V4.0) script from deadcat.
> > The emcpp script returns 0, temp script returns 1.
> > The interesting thing about temp is my BBOSTYPE variable has an
> > extra carriage return in it.
> > [hobbit (at) hershey ext]$ echo "$BBOSTYPE"
> > linux
> >
> It seems version 4.1 of the temperature.sh script (cannot find 4.0)
> chokes on this, reporting
>
> sh-3.2$ ./temperature.sh
> Unknown OS linux
>
> sh-3.2$ echo $?
> 1
Exactly, temperature.sh checks the $BBOSTYPE variable for known OS types
case "$BBOSTYPE" in
solaris)
get_temp_solaris
;;
osf)
get_temp_osf
;;
linux|redhat)
get_temp_omreport
;;
*)
echo "Unknown OS $BBOSTYPE"
exit 1
esac
It should match on the linux|redhat) line but doesn't
-Grs-