On Tue, Mar 20, 2001 at 06:26:35AM -0500, Peter Green wrote:
[snip]
> Sure, but the mycheckpasswd part is hanging me up. Specifically, writing to
> the numbered FDs is hanging me up, and I didn't have a lot of time to figure
> this out, so I was hoping something already existed.
> 
> If anyone could whip up the important bits (the IO redirection and the
> execution string), I could easily figure out the rest. And I'd be extremely
> grateful. :-)
> 
> Thanks,

Sorry for the delay but I'm at work... Well, here's some help with the 
file descriptors, I tested the following successfully under bash-2.03.

# checkpassword echo $? 3< /tmp/dummypwd
0
# od -c /tmp/dummypwd
0000000   d   u   m   m   y  \0   d   u   m   m   y   d   u   m   m   y
0000020  \0   9   8   5   0   9   3   2   3   9 004

Check out http://cr.yp.to/checkpwd/interface.html

G'luck
J�rgen

Reply via email to