Alexander Harvey wrote: > That doesn't look like a Solaris script to me but as far as your coding is > concerned, my thoughts are >
[ excellent and non-disputed points removed ] > (iv) for security you ought to use full paths to all of your binaries: > i.e. > /usr/bin/echo > instead of > echo > "echo" is a built-in feature of pretty much all shells, so just using plain 'echo' is a perfectly viable and more performance friendly option. A better solution, for security's sake, is to force the $PATH to a safe value at the beginning of the script and not bother with full paths. As a last note, "echo" is required to exist on the root partition, which places it in /bin on all systems I've ever come across. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
