[hobbit] bb-prtdiag.sh
Ward, Martin
Martin.Ward at colt.net
Mon Feb 11 10:21:02 CET 2008
I found I got this error when the environment variables passed in were
not being set.
I noticed it at this AWK call:
#Do the output conversions
echo $TEMPS | $AWK -v SYSTEM=$MACHINETYPE \
-v YELL=$YELLOWLINE \
-v REDL=$REDLINE \
-v THISH=$MACHINE \
-v PROG=$TEST \
-v GRED=$RED_PIC \
-v GYEL=$YELLOW_PIC \
-v DEBUG=$DEBUG \
For me, the $MACHINE wasn't set properly so THISH wasn't set, which
messed up a number of comparisons in the awk code.
You can either print out each of the shell variables listed above just
before the AWK call, or you can set up your hobbit environment and then
call the bb-prtdiag.sh script yourself as you have already described...
or both...
|\/|artin
--
> -----Original Message-----
> From: McGraw, Robert P [mailto:rmcgraw at purdue.edu]
> Sent: 08 February 2008 21:42
> To: hobbit at hswn.dk
> Subject: [hobbit] bb-prtdiag.sh
>
>
> Solaris 10 Sparc
> bb-prtdiag.sh V4_10
>
> When I run bb-prtdiag.sh I get the following error in the
> bb-prtdiag.log file.
>
> awk: syntax error near line 1
> awk: bailing out near line 1
>
> I added "-x" to bb-prtdiag.sh and can see where the awk
> command is erroring.
>
>
> I have seen reference to these errors in the archive but have
> not seen any resolution.
>
> If you have seen this error in bb-prtdiag.sh what did you do
> to resolve?
>
> Thanks
>
> Robert
>
>
>
> _____________________________________________________________________
> Robert P. McGraw, Jr.
> Manager, Computer System EMAIL: rmcgraw at purdue.edu
> Purdue University ROOM: MATH-807
> Department of Mathematics PHONE: (765) 494-6055
> 150 N. University Street
> West Lafayette, IN 47907-2067
>
>
>
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing security at colt.net and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
More information about the Xymon
mailing list