|
From: Alexey M. <mo...@no...> - 2002-03-17 22:44:22
|
It looks like perl-Expect doesn't support for several subsequent spawns
for on objects, smth like this
my $expect = Expect->new(...);
# setting some parameters for the object created
#...
$expect->spawn('first_program',@parameters);
$expect->expect(smth);
$expect->soft_close or $expect->hard_close;
print $expect->existatus;
...
$expect->spawn('another_program',@parameters);
I got a message here in logs telling that /dev/pts/7 which was used for
the first program interaction doesn't exist anymore (no such file or
directory)
If I replace the second $expect->spawn with Expect->spawn the program
works Ok. Is there a way to skip creation of another Expect object, or
at least cloning settings from the first object to the second one?
Alexey Morozov
|