iloveperl has asked for the wisdom of the Perl Monks concerning the following question:
use Expect; $Expect::Debug = 1; my $string= '/usr/bin/ssh x.x.x.x' my $exp=Expect->spawn($string) || die "error $!\n"
spawned '/usr/bin/ssh x.x.x.x' spawn id(3) Pid: 3399 Tty: /dev/pts/1 Expect::spawn('Expect', '/usr/bin/ssh x.x.x.x') called at test.pl line + 4 Closing spawn id(3). Expect::hard_close('Expect=GLOB(0x82ba93c)') called at /usr/lib/perl5/site_perl/5.8.4/Expect.pm line 1575 Expect::DESTROY('Expect=GLOB(0x82ba93c)') called at test.pl line 0 eval {...} called at test.pl line 0 spawn id(3) closed. Pid 3399 of spawn id(3) terminated, Status: 0x01
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expect Module problem
by Paladin (Vicar) on Jul 13, 2004 at 21:48 UTC | |
|
Re: Expect Module problem
by pbeckingham (Parson) on Jul 14, 2004 at 00:15 UTC |