Re: [webmin-l] How to create interactive dialogue in Custom Commands?
"Jamie Cameron" <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
That seems like a fairly complex approach. As an alternative, how about just gathering all the input to whiptail in advance using custom command parameters, and writing a script that saves them to a file which is then provided as input to whiptail? On 12/Feb/2017 09:21 dl <[email protected]> wrote .. On 11/02/17 23:46, Jamie Cameron wrote: Currently, there is no way to do this, sorry. The custom command is just run with whatever input is gathered from the parameters, and the output is displayed. True interactivity would be much more complex, as it requires running an interactive shell in the browse Jamie, thanks for clarifying that. I was jumping through hoops to try to setup Custom Commands to be interactive. Here is what I ended up with. I have installed webmin on a remote VM instance of Ubuntu 16.04 on Google Cloud Platform. I have access to VM via SSH session. Whiptail was already installed by default on the remote Ubuntu 16.04 server. Using Webmin File Manager I created a sub-folder for scripts. In there I crea ted a test bash script .. whiptail_example.sh Using File Manager I changed ownership of script to <user>:<user> and made it executable. Then via SSH console I can now run that script in VM to get the shell interactivity I want. ...... An added note. Before taking the above route I tried running Others > Text Login to see if I could run whiptail script This Text Login shell prompts for login: and Password: Because a Google Cloud VM instance doesn't have a default sudo password I created one via SSH session using sudo passwd Then I switched back to Text Login and all login attempts were rejected. Login incorrect. I don't know how to get in via Text Login. Why can I still access the VM via SSH session but not Text Login? dl ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot - 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