New Version of Admin Scripts (v.0.1.1)
list Michael Nemeth
I noticed that your still using using :
query=$( $HEAD --bytes="$CONTENT_LENGTH" )
Which is not portable at all. (its GNU/ linux only)
Rather than :
read -n $CONTENT_LENGTH query
Is thre any reason NOT to use the read ? Have not tested 0.1.1 but saw that its in there.
Also you should note that #! must be changed to a GNU bash, version 2.05.0(1) + compatable sh.
ON unix system /bin/sh is either a basic bourne shell or a posix enhanced boure.
Thanks for you effort! I very happy with the veiw graph script; it will please my users. The log view is nice but
IM usualy on the hobbit sever anyway. Have not tried the rest , ive no pressing need for it any else and it looks like
it could damage stuff. The chhostservice.sh script would be handy for me and I maybe thats the next one for me to test but IM hoping that
Henrik (hint hint!) can intergrate it into hobbit particularly on the enable/disable Maintenance page.
I think most of frame work is already there for it. Note it would be nice is the delete test/host would log some where!
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| _p_ Mike Nemeth
| ___| |_____ email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX |><___________) | Home Page:http://www.geocities.com/mjnemeth/
| Work Page:http://scorpion/~nemethm/ | Work Page:http://ortfsb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Stefan Freisler
Michael Nemeth <user-609d3fab5b2d@xymon.invalid> schrieb am 05.01.2007 11:51:10:
▸
I noticed that your still using using :
query=$( $HEAD --bytes="$CONTENT_LENGTH" )
Which is not portable at all. (its GNU/ linux only)
Rather than :
read -n $CONTENT_LENGTH query
Is thre any reason NOT to use the read ? No, i think i forgot it to change, or can't remeber way i used the old one. In view Logs i have tested it, i think, because there was both posibilites in it (one with uncommented)
▸
Also you should note that #! must be changed to a GNU bash, version 2.05.0(1) + compatable sh. ON unix system /bin/sh is either a basic bourne shell or a posix enhanced boure.
sorry i can't follow you. What it is to do for unix compatibility?
▸
Thanks for you effort! I very happy with the veiw graph script; it will
please my users. The log view is nice but IM usualy on the hobbit sever anyway. Have not tried the rest , ive no
pressing need for it any else and it looks like it could damage stuff.
yes it could but i think not to mutch ;-). I'm allways on our server too, but i think its mutch comfortable to do it with my Browser.
▸
The chhostservice.sh script would be handy for me and I maybe thats the next one for me to test but IM hoping that Henrik (hint hint!) can intergrate it into hobbit particularly on the enable/disable Maintenance page.
Yes that was a fine thing. Eventuell he can integrade my packet if it was stable enough.
I think most of frame work is already there for it. Note it would be nice is the delete test/host would log some where!
Ok this is a good idea for next one. By Stefan
list Michael Nemeth
▸
Also you should note that #! must be changed to a GNU bash, version 2.05.0(1) + compatable sh. ON unix system /bin/sh is either a basic bourne shell or a posix enhanced boure.
sorry i can't follow you. What it is to do for unix compatibility?
/bin/sh on your box is actual bash I think. I bet if you look its a link to /bin/bash ! ON most unix (not linux) systems /bin/sh is bourne shell; if you're lucky its a posix compliant one. Your scripts will not run correctly on such systems. As a matter of fact bash, version 2.03.0(1) will NOT work While: bash, version 2.05.0(1) Will work. So not only are they bash dependent but bash version depended! Ok I LOOKED at some of the other script and found that the date command is linux/gnu date not the date solaris uses. No problem for me since I have gnu date. All the above need only be listed in either README or KNOWN PROBLEMS
▸
-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | _p_ Mike Nemeth | ___| |_____ email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX |><___________) | Home Page:http://www.geocities.com/mjnemeth/ | Work Page:http://scorpion/~nemethm/ | Work Page:http://ortfsb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++