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
#!/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
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
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
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
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
>
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
7 matches
Mail list logo