On Tue, Mar 28, 2017 at 12:20:29AM +0300, Shlomi Fish wrote: > Hi Paul! > > On Mon, 27 Mar 2017 22:21:06 +0200 > Paul Johnson <p...@pjcj.net> wrote: > > > On Mon, Mar 27, 2017 at 04:04:22PM +0200, Luca Ferrari wrote: > > > Hi all, > > > I've to run a very old application from the command line (unix), it > > > seems to me a ncurses application but I'm not sure that is the real > > > case (let's say it seems ncurses). > > > Anyway, I have to launch the application with a file name, do a couple > > > of menu interactions and exit, then do it again for a hundred or so > > > files. > > > Is there any kind of "app-mechanize" similar to www::mechanize? > > > > Nothing to do with perl, but you could try xdotool > > > > http://www.semicomplete.com/projects/xdotool/ > > > > The original poster was asking about automating an ncurses/etc. unix > *terminal* > app - not an X11-based app which is what xdotool is for.
You'll have to run your terminal under X, it's true. But otherwise it seems a simple, low-tech solution to a one-off problem. You could even generate your xdotool script with perl, to bring us back a little on topic. Expect may well work, and would be a more robust solution, but I suspect there's a reasonable chance of running into difficulties, hence the alternative suggestion. -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/