Bug 7157 - autopasswd (part of expect) non-functional
autopasswd (part of expect) non-functional
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: tcltk (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-19 16:42 EST by rtowster
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-03 15:24:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description rtowster 1999-11-19 16:42:20 EST
I fixed this myself in RH 5.0.. and now again in 6.0.. maybe you can fix it
for 7.0.. Anyway.. here is a fixed one...
----------------------
#!/usr/bin/expect -f
# wrapper to make passwd(1) be non-interactive
# username is passed as 1st arg, passwd as 2nd

set force_conservative 1
set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
sleep .1
expect "password:"
sleep .1
send "$password\r"
sleep .1
expect "password:"
sleep .1
send "$password\r"
sleep .1
expect eof
Comment 1 Elliot Lee 2000-02-03 15:24:59 EST
Change is in tcltk-8.0.5-33

Note You need to log in before you can comment on or make changes to this bug.