There's a directory /dev/fd which contains files 0, 1 and 2.

They corresponmd to stdin, out and err.

Try this:

echo Hello | cat /dev/fd/0

Get it?

-- 
-Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED]
-Stranger things have happened but none stranger than this. Steven W. Orr-
Does your driver's license say Organ Donor?Black holes are where God \
-------divided by zero. Listen to me! We are all individuals!---------

On Thu, 6 Apr 2000, Pete Peterson wrote:

=>Some commands understand "-" as meaning STDIN in place of input file or
=>STDOUT instead of output file.  Other than making temp files, is there
=>some easy way to make a command that DOESN'T have this convention read
=>from STDIN and/or write to STDOUT.
=>
=>In my particular case, I'd like to convert Postscript files to PDF files.
=>
=>I can do"
=>  ps2pdf -r300 -g3300x5100 infile.ps outfile.pdf
=>
=>But I'd really like to have a FILTER that might do something like:
=>
=>program_making_ps | postscript2pdf [opts] | uuencode widget.pdf | mail whoever
=>
=>Obviously, I could make "postscript2pdf" be a script that wrote STDIN to a
=>temp file, ran ps2pdf to create another temp file, output that to STDOUT,
=>and deleted the temp file, but I thought I remembered there was some less
=>ugly way to accomplish that with a wrapper that didn't involve creating
=>temporary files.
=>
=>
=>          pete peterson
=>
=>------------------------------
=>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to