From: Roland G. <RGi...@cp...> - 2002-09-05 07:48:34
|
> Sometimes it fails 1st then starts working and other times it works > and them fails, if that makes any difference (or sense...) ... > Sending '1derful\n\012' to spawn id(3) OK, that was a subtle one: you are not chomping the entered password, so when you send it, it contains TWO \n. passwd clears it's readline buffer before reading the password, but depending things beyond control, the second \n might or might not be in the buffer to be cleared. If it's not cleared, the "Repeat password" prompt returns with an empty password, which clearly does not match the first one... Just remove the "\n" from the send and it should work reliably. Hope this helps, Roland -- RGi...@cp... |