On Tue, 3 Jul 2001, Tarik Jeait wrote:
> can somebody tell me how to change my unix passwd by a perl script
> :
>
> open(FILE,"|passwd"); --> doesn't work ;
>
> must I open some pipe or What ?
You'll want to use the Expect module, which can be used to automate
interactive tasks like this. Excpect.pm can be found on CPAN. This will
get you started:
http://search.cpan.org/search?mode=module&query=Expect
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
An investment in knowledge always pays the best interest.
-- Benjamin Franklin