in reply to Re^2: Passing password with command
in thread Passing password with command
Maybe what I wrote is confusing...I said (or tried to say) to try a here document, and if it doesn't work, then the command does not read from STDIN, and then go look into expect.