Re: [Python-Dev] getpass and stdin

2008-02-26 Thread Leif Walsh
On Tue, Feb 26, 2008 at 1:18 PM, Shaya Potter <[EMAIL PROTECTED]> wrote: > I want to run a program within a bash script, essentially daemonize a > program that doesn't have a daemon mode. > > #!/bin/sh > > echo "What Is Your Passsword: " > stty_orig=`stty -g` > stty -echo > read -r PASSWORD

Re: [Python-Dev] getpass and stdin

2008-02-26 Thread Shaya Potter
Leif Walsh wrote: > On Tue, Feb 26, 2008 at 12:43 PM, Shaya Potter <[EMAIL PROTECTED]> wrote: >> the -p option is not good on multi user systems >> the -p option is not particularly good on NFS based systems >> (have to trust every user on every machine with access to NFS share) > > You seem

Re: [Python-Dev] getpass and stdin

2008-02-26 Thread Leif Walsh
On Tue, Feb 26, 2008 at 12:43 PM, Shaya Potter <[EMAIL PROTECTED]> wrote: > the -p option is not good on multi user systems > the -p option is not particularly good on NFS based systems > (have to trust every user on every machine with access to NFS share) You seem somehow both worried about

Re: [Python-Dev] getpass and stdin

2008-02-26 Thread Shaya Potter
Leif Walsh wrote: > On Sun, Feb 24, 2008 at 1:02 PM, Shaya Potter <[EMAIL PROTECTED]> wrote: >> [please cc me on responses] >> >> I was wondering if getpass could be changed to enable piped stdin to work. >> >> For instance, the getmail program can read my email password in via >> stdin using ge

Re: [Python-Dev] getpass and stdin

2008-02-26 Thread Leif Walsh
On Sun, Feb 24, 2008 at 1:02 PM, Shaya Potter <[EMAIL PROTECTED]> wrote: > [please cc me on responses] > > I was wondering if getpass could be changed to enable piped stdin to work. > > For instance, the getmail program can read my email password in via > stdin using getpass functionality. > >