shaya potter isxdhoecscolumbiaedu leif walsh wrote tue feb 26 2008 1243 pm shaya potter wrote p option good multi user systems p option particularly good nfs based systems trust every user every machine access nfs share seem somehow worried security yet lazy type password think point one concerns going give want run program within bash script essentially daemonize program doesnt daemon mode binsh echo passsword stty_origstty g stty echo read r password stty stty_orig timeout600 1 echo password program sleep timeout done assuming say part design behind code whats point part code try fd sysstdinfileno except return default_getpassprompt ie exception handler default_getpass always going read stdin end day line sysstdinreadline im assuming im missing something sorry know way around libc version getpass python one version typically try open devtty reading fails fall back stdin presume thats whats going first line appears getting stdin anyway im longer sure said dont use default_getpass code reads stdin begin code someone elses program modify thats pain mostly wondering could changed python level least understand python made decision sort understand eating stdin aspect _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom tue 05 aug 2008 222509 0500 pythondev getpass stdin