in reply to Expect.pm and Perl Threading

Hi,

what happens if you replace the line:

die "no password prompt";
with
die "no password prompt: $! --- $@\n";
This way, you get more information on what the actual error was, if you're lucky.

And a note on your idea to store passwords encrypted on disk. This is fine, as long as you make sure that i) whoever is running the script has no easy access to said file and ii) you don't put the key to decrypt the file in the script. That's like hiding your key under the doormat but taping a notice describing where to find the key to your front door.

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: Expect.pm and Perl Threading
by Cmdr_Tofu (Scribe) on Nov 24, 2002 at 15:32 UTC
    Thank you, that did give me more information... Now I get:
    thread failed to start: no password prompt: Input/output error ---
    perhaps running stuff from a separate thread interferes with the way Expect.pm connects to the streams...

    About the encryption thing... unfortunately I have to type the decryption salt to load the plaintext passwords into my program every time :(