RE: Getting Perl to interact with passwd

2001-06-12 Thread Daniel Ames
On Tue, 12 Jun 2001, Paul wrote: > --- Daniel Ames <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > This was brought up before, but the archives didn't really answer my > > question. > > > > I'm trying to get my script to reset a password fo

RE: Getting Perl to interact with passwd

2001-06-11 Thread Daniel Ames
At 01:14 PM 6/11/01 -0700, Paul wrote: > > #!/usr/bin/perl > > > > open(handle, "| passwd joeuser"); > > > > print handle "password\n"; > > print handle "password\n"; > > close(handle); > > > > Here's what it spits out: > > > > Changing password for user joeuser > > New UNIX password: Retype new U

Getting Perl to interact with passwd

2001-06-11 Thread Daniel Ames
Hi all, This was brought up before, but the archives didn't really answer my question. I'm trying to get my script to reset a password for me via the passwd command. Keep in mind, I'm very new, so if this is dumb, try not to laugh: #!/usr/bin/perl open(handle, "| passwd joeuser"); print handl