Re: [webmin-l] Custom commands .. responding to interactive dialogue
"Jamie Cameron" <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
On 04/Jul/2016 01:58 dl <[email protected]> wrote .. > I'm creating a library of custom commands some of which have interactive > dialogues. > > For example here is the return I have after running the custom command > "apic loopback" > > ? Please review the license for API Connect available in /usr/lib/node_modules/apiconnect/LICENSE.txt > and select yes to accept. (Use arrow keys) > ❯ yes > no [?25l[?25h > > > Is it possible to automate such question and answer dialogues by > simulating key strokes? > > e.g. by using xdotool? There's no built-in support for handling interactive dialogs like this in Webmin. Maybe if some other tool can fake it (ie. expect) you could call that from your custom command though. ------------------------------------------------------------------------------ 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