On Friday 02 September 2005 15:26, Anne Ramey wrote: > I know this may not be the correct forum for this question, but I > just can't find where the appropriate place to ask would be. I'm > trying to move an expect script from and older non-fedora linux > box to a new fedora box. It's just not working. I'm thinking it > has less to do with expect and more to do with the passwd > function on fedora, but I'm not sure. What I'm trying to do is > call the expect script to set a password from inside a customized > useradd fuction. The following script does work on my FC3 box ( I'm running a source compiled version of expect-5.43.0-2. which showed the same symptoms as you describe when I run your script. ) The script is from: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=11830 ======================== #!/usr/bin/expect -f # wrapper to make passwd(1) be non-interactive # username is passed as 1st arg, passwd as 2nd set password [lindex $argv 1] spawn passwd --stdin -f [lindex $argv 0] expect "Changing password" send "$password\r" expect eof ======================== Another bug you may be interested in: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158272 Regards, Mike Klinke