Stephen Scheiderich wrote: > Ladies or Gentlemen, > Please evaluate and decide if you would like to publish this example > program for managing the SMF using Tcl/Tk. > The program is meant to be a demonstration of the power of Tcl/Tk as > well as our programming acumen with it. > Please go to the following web-site to download the compressed 'zip' > file of the program. It requires Tcl/Tk to be > installed which of course is included with Solaris 10 now. It expects > the 'wish' command to be located in the > /usr/sfw/bin directory.
Looks nice, Stephen. I've added a link to it from our contributed utilities page: http://www.opensolaris.org/os/community/smf/contributed-utilities/ A couple minor points: I can select and attempt to perform operations on the service table's header. These operations will always fail: you should either special case that line or take it out of the list body. On recent builds of Nevada/Indiana, wish is located in /usr/bin, not /usr/sfw/bin. You could do an explicit existence test, but it is probably simpler to set the PATH to /usr/sbin:/usr/bin:/usr/sfw/bin, refer to wish using a relative path name, and let the shell find the right location for you. Dave