Expect and xterm
am 28.02.2007 05:12:39 von Ishmael
I would like to automate the following sequence:
1) Open xterm via Expect script.
2) Run a program in the new terminal.
3) 'Let go' of the new terminal, leaving it running (!).
4) Exit Expect script.
I can get as far as 1) with Perl's implementation of Expect, and as
far as 2) with TCL Expect (using the hocus pocus described in Don
Libes' book). Any ideas? (P.S. Using xterm's '-e' option won't work
in this case).
Thanks for your help!
Re: Expect and xterm
am 06.03.2007 20:07:15 von keith
On Feb 27, 10:12 pm, "Ishmael" wrote:
> I would like to automate the following sequence:
>
> 1) Openxtermvia Expect script.
> 2) Run a program in the new terminal.
> 3) 'Let go' of the new terminal, leaving it running (!).
> 4) Exit Expect script.
>
> I can get as far as 1) with Perl's implementation of Expect, and as
> far as 2) with TCL Expect (using the hocus pocus described in Don
> Libes' book). Any ideas? (P.S. Usingxterm's'-e' option won't work
> in this case).
> Thanks for your help!
Have you tried using android rather then Perl's Expect.pm?
http://www.ddj.com/dept/debug/184404691
I read the article above a number of years back, and was able to use
android & xscope for a similar task,
as well as for other things. (In a past life...). 'Just a thought.