filepro and the SYSTEM command on SuSE Linux
Fairlight
fairlite at fairlite.com
Fri Nov 9 08:33:33 PST 2007
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.
m->
--
Most people think the defining traits of human beings are intelligence,
speech, writing, or creativity. The sad reality is that the most singular
defining quality of humanity is cruelty. No other species appears to be so
able and willing to inflict pain on its brethren for no logical reason.
More information about the Filepro-list
mailing list