Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-19
04:13 • Ticket [218304ffff] tcl/expect broken on redhat 6.0 status still Closed with... artifact: 1a4db6e226 user: dgp
2000-10-26
08:18 • Closed ticket [218304ffff]. artifact: 1eadc4784a user: welch
00:55 • New ticket [218304ffff]. artifact: d05f84abb8 user: nobody

tcl/expect broken on redhat 6.0

Closed / Invalid218304ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:56
OriginalBugID: 3668 Bug
Version: 8.2.1
SubmitDate: '1999-11-23'
LastModified: '2000-01-18'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
OSVersion: RedHat linux 6.0
Machine: Pentium 233
FixedDate: '2000-10-25'
ClosedDate: '2000-01-18'


Name:
Anthony Santoni

Extensions:
expect 5.31

CustomShell:
na

ReproducibleScript:
Default program that comes with expect.  Run with:
./autopasswd admin testing

#!/usr/local/bin/expect -f
# wrapper to make passwd(1) be non-interactive
# username is passed as 1st arg, passwd as 2nd

exp_internal 1

set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "password:"
send "$password\r"
expect "password:"
send "$password\r"
expect eof

ObservedBehavior:
It seems that none of the programs which come with rh 6.0 work. Even self-written ones fail.  I think that what is happening is that the send isn't sending a return character correctly (ie. \r).  This has made tcl/expect
impossible on rh-6.0 systems.

DesiredBehavior:
I expect to see something along these lines for the example command line above:

[root@haven bin]# passwd admin
Changing password for user admin
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully



Libes responded on the Net covering this:
    http://www.deja.com/=dnc/getdoc.xp?AN=551661787 
-- 01/18/2000 hobbs
welch Closed ticket [218304ffff]. [History diff]2000-10-26 08:18:59
dgp Ticket [218304ffff]: 4 changes [History diff]2001-04-19 04:13:16
Log in (anonymous is fine) to add a comment.