help with system( )

i am looking to automate the creation of username/passwords for digest
authentication via a simple perl script. i found a module on cpan for
htpasswd but not htdigest.

the system call is htdigest /usr/local/apache/passwd/digest realm
username

then you are prompted to enter and reenter the password
how do i send the password via a perl script?

thank you for your assistance,
eric
sansbacon [ Do, 24 Januar 2008 23:16 ] [ ID #1915725 ]

Re: help with system( )

On 2008-01-24, sansbacon [at] gmail.com <sansbacon [at] gmail.com> wrote:
> i am looking to automate the creation of username/passwords for digest
> authentication via a simple perl script. i found a module on cpan for
> htpasswd but not htdigest.
>
> the system call is htdigest /usr/local/apache/passwd/digest realm
> username
>
> then you are prompted to enter and reenter the password
> how do i send the password via a perl script?

Look for the Perl Expect module.

--keith


--
kkeller-usenet [at] wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
Keith Keller [ Do, 24 Januar 2008 23:55 ] [ ID #1915726 ]
Perl » comp.lang.perl.misc » help with system( )

Vorheriges Thema: FAQ 9.5 How do I extract URLs?
Nächstes Thema: sprintf rounding with FreeBSD and perl 5.8.x