[Python-Dev] getpass and stdin
adlaiff6 at gmail.com
Tue Feb 26 19:20:09 CET 2008
On Tue, Feb 26, 2008 at 1:18 PM, Shaya Potter <spotter at cs.columbia.edu> wrote:
> I want to run a program within a bash script, essentially daemonize a
> program that doesn't have a daemon mode.
> echo "What Is Your Passsword: "
> stty_orig=`stty -g`
> stty -echo
> read -r PASSWORD
> stty $stty_orig
> while [ 1 ]
> echo $PASSWORD | program
So...why won't `program -p $PASSWORD' work here?
> sleep $TIMEOUT
More information about the Python-Dev