filepro and the SYSTEM command on SuSE Linux

Jay R. Ashworth jra at baylink.com
Fri Nov 9 10:24:54 PST 2007


On Fri, Nov 09, 2007 at 11:33:33AM -0500, Fairlight wrote:
> Is it just me, or did Jay Ashworth say:
> > On Fri, Nov 09, 2007 at 11:20:55AM -0500, Fairlight wrote:
> > > Yo, homey, in case you don' be listenin', Jay Ashworth done said:
> > > > On Fri, Nov 09, 2007 at 09:56:38AM -0500, Nancy Palmquist wrote:
> > > > > I make a command string that looks like this:
> > > > > gpg --passphrase-fd 0 --output 
> > > > > /var/appl/cccwork/test_PR1194478701017kptestmetropr05.xml --decrypt 
> > > > > /home/cccinfo/test_PR1194478701017kptestmetropr05.xml.pgp < 
> > > > > /myblessedpassph.txt
> > > >
> > > > 2) GPG purposefully won't accept a redirected passphrase, reading it
> > > > from the terminal rather than standard input?
> > > 
> > > That's going to be the culprit.  Nevermind the redirect--it may be entirely
> > > discarded.  The problem is that it's probably hanging waiting for data on
> > > STDIN, and it's never going to get any with the command above.
> > 
> > I believe you mean "waiting for data from the terminal", right?
> > 
> > That is: it's fopening /dev/tty.
> 
> I said what I meant.  It's waiting for data on fd 0.  That's colloquially
> known as STDIN.  It can be closed, duped, whatever, and will work even with
> no terminal attached.
> 
> I don't see /dev/tty entering into it.  It's told to read fd 0, that's what
> it does.  What may or may not be done to fd 0 beforehand is anyone's guess.

What was done to it is Nancy redirected a passphrase file to it that I
think it might be ignoring.

The substance of my item 2 is that GPG may well (I haven't actually
checked, but it's common) *not read passphrases from STDIN on purpose*,
requiring you to type it on the physical terminal.

That could explain her problem.

If GPG *will* take it from STDIN, then she's done the right thing...
and something else it making it not work.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274


More information about the Filepro-list mailing list