in reply to Re: inconsisntency, if, expect, logs
in thread inconsisntency, if, expect, logs
that comprises the rest of my expect usage in this file excluding the soft_close I would be willing to post the whole file, but it is around 600 lines and the rest isnt relavent i think....my $exp = new Expect; .... $exp->raw_pty(1); $exp->log_stdout(0); $exp->spawn($telnet $host);||die; $exp->expect($timeout, ['ogin:', sub { $exp->send("$username\n"); exp_contin +ue; } ], ['assword:', sub { $exp->send("$password\n"); } ], [timeout => sub { die "<center>ERROR: <BR>A timeout h +ast occured at login</center>\n"; } ], ); $exp->log_file(\&formatoutput); $exp->send("/bin/sh\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: inconsisntency, if, expect, logs
by waswas-fng (Curate) on Jun 13, 2003 at 19:15 UTC | |
by jcpunk (Friar) on Jun 13, 2003 at 19:28 UTC | |
by waswas-fng (Curate) on Jun 13, 2003 at 19:40 UTC | |
by jcpunk (Friar) on Jun 13, 2003 at 19:46 UTC | |
by waswas-fng (Curate) on Jun 13, 2003 at 19:48 UTC | |
|