Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am using the Expect::Simple to run a command that prompts for a password. When the command is finished, I got this (in cleanup) Expect::Simple: disconnection error. The command normally goes back to the command prompt once it is finished, so I don't really need a disconnect cmd for it. I read the Expect::Simple module help, but doesn't really help. Can anyone tell me what this disconnection error mean? Right now, I am using "\n" (Just as a placeholder) when I new Expect. Thanks!!

Replies are listed 'Best First'.
Re: expect::simple disconnection error
by ides (Deacon) on Aug 04, 2004 at 18:14 UTC

    If you don't need a disconnect command don't use one. Try not setting DisconnectCmd or setting it to undef.

    -----------------------------------
    Frank Wiles <frank@wiles.org>
    http://frank.wiles.org