--command-fd

Leigh S. Jones kr6x@kr6x.com
Sat May 25 02:55:01 2002


Note that stdin is not the command line.
Your program has paused waiting for you to enter a password.

If you want the password to be read from stdin, you need to
pipe it into gpg on --passphrase-fd 0 (stdin).

----- Original Message -----
From: "Rasoul Hajikhani" <rasoul@rhythm.com>
To: <gnupg-users@gnupg.org>
Sent: Friday, May 24, 2002 5:42 PM
Subject: --command-fd


> Hi folks,
> I am trying to my passphrase by running a perl program to this for
me.
> The docs mentions that:
>
> --passphrase-fd n
>                  Read the passphrase from file descriptor  n.  If
>                  you  use  0  for  n, the passphrase will be read
>                  from stdin.     This can only be  used  if  only
>                  one  passphrase  is  supplied.   Don't  use this
>                  option if you can avoid it.
> --command-fd n
>                  This is a replacement for the deprecated shared-
>                  memory  IPC  mode.   If  this option is enabled,
>                  user input on questions is not expected from the
>                  TTY  but  from  the  given  file descriptor.  It
>                  should be used together  with  --status-fd.  See
>                  the  file doc/DETAILS in the source distribution
>                  for details on how to use it.
>
> So here is the command that my script is trying to execute:
>
> gpg --homedir /usr/lsd/apache-ssl/htdocs/secureDB/PGP/.gnupg
> --command-fd 0 --edit-key 1193 passwd
>
> But gpg hangs in the middle of its work. Here is the output:
>
> Secret key is available.
>
> pub  1024D/8B7A4655  created: 2002-05-03 expires: never
     trust: -/u
> sub  1024g/A935EF26  created: 2002-05-03 expires: never
> (1). Rasoul Hajikhani (None) <1193@rhythm.com>
>
> Key is protected.
>
> You need a passphrase to unlock the secret key for
> user: "Rasoul Hajikhani (None) <1193@rhythm.com>"
> 1024-bit DSA key, ID 8B7A4655, created 2002-05-03
>
>
> After the last line, the program hangs. I could not find any info on
> --status-fd in the docs/DETAILS file. Can someone shed some light on
> this for me...
> Thanks in advance.
> -r
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users