Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Since that's probably going to be a fairly common scenario, I'll need to deal with it now.

    No you don't, just learn from history: "No patch? Oh, well. Take care."  :)

    Seriously, if you decide you want to tackle it, I don't think it will be too hard. Expect with undef timeout, if you get eof, the command completed without asking for a password, if you get a password prompt, send the password and then expect for eof. Don't forget to omit any steps you might previously have taken to insist that the programmer specified a password, as it will no longer be required for all cases.

    Or, best yet, take the person who requested the feature, point them at this journal entry, and encourage them to try their hand at writing the patch!

    --
    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers