Click here to get back home

Expect and xterm

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Expect and xterm Ishmael 02-27-2007
Posted by Ishmael on February 27, 2007, 11:12 pm
Please log in for more thread options


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!


Posted by Keith on March 6, 2007, 2:07 pm
Please log in for more thread options


> 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.


Similar ThreadsPosted
DBI does not do what I expect... March 12, 2008, 4:18 am
using Net::SSH::Perl with Expect November 21, 2005, 3:41 pm
Expect::Simple December 1, 2005, 4:19 pm
Expect::Simple December 2, 2005, 9:22 am
Expect: Getting PID at both ends of ssh January 22, 2007, 3:08 pm
Perl Expect question November 8, 2004, 12:20 pm
username passwd expect September 14, 2006, 12:36 am
Simple expect problem . March 21, 2007, 2:31 pm
Expect.pm module help - simple question... March 15, 2005, 12:27 pm
Problem with very simple Expect script April 24, 2005, 8:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap