Le 5372 Septembre 1993, OLIVER via RT a envoyé:
Show quoted text> I think I see the problem here... When $c->cmd() is called, the module
> expects it to always have a "return" command prompt afterwards. However
> with 'exit' on the Serial line there is no returned command prompt
> because the device has disconnected.
Ok, I see.
Show quoted text> In this case I think you can just do only the $c->close() and that will
> disconnect cleanly for you. You do not need to do $c->cmd('exit').
>
> Is this a good solution, or would you like the module to work differently?
the $c->close() only close the serial line, when I run minicom over
the same serial line I saw that the cisco user is connected.
The close does not logout the connected user.
Maybe the close can take an argument, like:
$c->close(logout => 'exit');
To say that the close must run the 'exit' command to logout, so it
does not expect a return value.
Regards.
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1