Re: Help with Expect & Xterm

2002-02-17 Thread darrell dupas
so the last attempt was a learning process, if you tried it you may have had *very* hit and miss success, plus general weirdness, the script i have attached is a little better, i woke up this morning thinking, hmm, i should not learn at other peoples expence and perhaps i should give a second e

Re: Help with Expect & Xterm

2002-02-16 Thread darrell dupas
#!/usr/bin/expect -- # page 294 oriley expect set send_slow { 1 .001 } set prompt "(%|#|\\\$)" set shell $env(SHELL) #proc open_xterm_shell {} { #global shell # in order to talk to an xterm expect must obtain a pty and pass it to the xterm spawn -pty # the variable $spawn_out(slave,name) is

Re: Help with Expect & Xterm

2002-02-14 Thread Jay Mallar
On Wednesday 13 February 2002 9:46 pm, Cameron Kerr wrote: > On Wed, 13 Feb 2002, Jay Mallar wrote: > >spawn telnet > >sleep 5 > >send "login " > >sleep 5 > >send "" > > Look at the docs (man expect) for log_user, and interact > > >Starting up three xterms isn't a problem, but automating the logi

Re: Help with Expect & Xterm

2002-02-13 Thread Jay Mallar
On Wednesday 13 February 2002 9:46 pm, Cameron Kerr wrote: > On Wed, 13 Feb 2002, Jay Mallar wrote: > >spawn telnet > >sleep 5 > >send "login " > >sleep 5 > >send "" > > Look at the docs (man expect) for log_user, and interact I've been reading the man page all day. If it made sense to those of

Re: Help with Expect & Xterm

2002-02-13 Thread Cameron Kerr
On Wed, 13 Feb 2002, Jay Mallar wrote: >spawn telnet >sleep 5 >send "login " >sleep 5 >send "" Look at the docs (man expect) for log_user, and interact >Starting up three xterms isn't a problem, but automating the logins is.. Is there any reason you can't do it the right way and use ssh, with

Re: Help with Expect & Xterm

2002-02-13 Thread Jay Mallar
On Wednesday 13 February 2002 6:09 pm, Cameron Kerr wrote: > You can't use expect to interact with X stuff, only terminal stuff. So you > can control the shell _inside_ the terminal, but not an xterm. Therefore, > you should start your expect script inside a new xterm > > xterm -e myexpectscript >

Re: Help with Expect & Xterm

2002-02-13 Thread Cameron Kerr
On Wed, 13 Feb 2002, Jay Mallar wrote: >I can't seem to get expect to talk to my xterm. You can't use expect to interact with X stuff, only terminal stuff. So you can control the shell _inside_ the terminal, but not an xterm. Therefore, you should start your expect script inside a new xterm xter