Phoenix.pm: Expect.pm question

Phaedrus phaedrus at endless.org
Mon Nov 8 14:48:52 CST 1999


> From: Douglas E. Miles <doug.miles at bpxinternet.com>
> 
> Kevin Buettner wrote:
> > 
> > On Nov 8, 11:54am, Douglas E. Miles wrote:
> > 
> >     my $passwd = Expect->spawn("/usr/bin/passwd $username");
> > 

I don't know what sys you are running, or what expect is, but you may wish
to take a look at the passwd source code. I've had similar problems with
ftp taking a password from stdin in the past (had to use a .netrc). It
could well be security built into passwd, designed to frustrate people
writting scripts to make the system try lots of passwords. Just a guess.
Goodluck!

-scott




More information about the Phoenix-pm mailing list