[hobbit] Antwort: Re: [hobbit] New Version of Admin Scripts (v.0.1.0)

Jeffcoat, Al Al.Jeffcoat at orhs.org
Fri Jan 5 09:46:20 CET 2007


It's a debug mode if you will... It shows you what the script is doing.
Here's an example with one of the scripts. 

 

sh -x edit_files.sh

' echo 'content-type: text/html

content-type: text/html

+ echo $'\r'

 

++ +%s

edit_files.sh: line 12: +%s: command not found

+ this_create_time=$'\r'

+ $'\r'

: command not found 13:

+ COLOR=$'blue\r'

' THIS_TITLE='Edit Configs

+ $'\r'

: command not found 21:

+ HOBBIT_SERVER_CFG=$'../server/etc/hobbitserver.cfg\r'

+ $'\r'

: command not found 23:

+ FILEX=(/etc/bb-hosts /etc/hobbit-alerts.cfg /etc/hobbitgraph.cfg
/etc/hobbitlaunch.cfg /etc/hobbitserver.cfg)

+ $'\r'

: command not found 26:

'dit_files.sh: line 34: syntax error near unexpected token `

'dit_files.sh: line 34: `this_cgiascii()

 

Al

 

From: stefan.freisler at aspect-online.de
[mailto:stefan.freisler at aspect-online.de] 
Sent: Friday, January 05, 2007 2:14 AM
To: hobbit at hswn.dk
Subject: [hobbit] Antwort: Re: [hobbit] New Version of Admin Scripts
(v.0.1.0)

 


Hi, 
what do this command i never heard about "set -x" should i inklude it on
all scripts or is this only solution for this problem? 

thx 
Stefan


This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited. This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message.  To reply to our email administrator directly, send an email to:  postmaster at orlandoregional.org .  If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Regional Healthcare by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Regional Healthcare.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070105/4bd19f7e/attachment.html>


More information about the Xymon mailing list