Re: [webmin-l] creating custom command menu key/value conf
"Jamie Cameron" <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
On 03/Jul/2016 05:30 dl <[email protected]> wrote .. On 03/07/16 00:57, Jamie Cameron wrote: That syntax looks fine to me. In the file, the first column should be the value you want passed to your command, and the second column what is displayed in the menu. Solved, thanks. I had read here ... http://doxfer.webmin.com/Webmin/Custom_Commands But I had typed an incorrect file path which I did not spot. Unfortunately the Custom Commands module does not return error that file path is not found. For the record, I did find one useful tip for creating Type: Menu directly, without a conf file. Here is an example of Greek alphabet menu .. paste full string into Menu .. Value field .. printf "alpha\nbeta\ngamma\ndelta\nepsilon\nzeta\neta\ntheta\niota\nkappa\nlambda\nmu\nnu\nxi\nom icron\npi\nrho\nsigma\ntau\nupsilon\nphi\nchi\npsi\nomega" | Note that the closing pipe character "|" is needed to create the drop down menu items. This tip was found here ... https://bo oks.google.co.uk/books?id=CtgrAwAAQBAJ&pg=PT225&lpg=PT225&dq=webmin+custom+command+files&source=bl&ots=E_yFJfVFxd&sig=VuL2dkM76kfYS-CRSobZaZDvqLE&hl=en&sa=X&ei=1PoOVMFxpMDsBsfygOgN#v=onepage&q=webmin%20custom%20command%20files&f=false DL OK, that explains it. I will add a check to the code to produce an error if you enter a menu file that doesn't exist. ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape - Forwarded by the Webmin mailing list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list