I'm writing a C/Shell program that will be doing su or sudo or ssh. They all want their passwords in consol input rather than stdin.
Does anybody know a solution?
Setting up password-less sudo is not an option.
Expect could be an option, but it's not present on my stripped-down system.