Re: How do I pipe tiff2ps output into ps2pdf?

From: Robert Newson (ReapNewsB_at_bullet3.fsnet.oc.ku)
Date: 04/04/05


Date: Mon, 04 Apr 2005 19:02:45 GMT

Brendan S (Scratch User) wrote:

> I had thought it would be something simple like:
>
> tiff2ps -a test.tif | ps2pdf > test.pdf
>
> But this tells me that Usage: ps2pdfwr [options...] (input.[e]ps|-)
> [output.pdf|-]

The minus only arg is often used to mean stdin, try:

% tiff2ps -a test.tif | ps2pdf - > test.pdf



Relevant Pages

  • Re: What file display command does NOT default to STDIN if unspecified?
    ... takes the filename as an arg, and which fails if the arg isn't given ... then of course the cat command ... defaults to STDIN and sits there waiting for input. ... I could go edit all these scripts to add defensive quotes, ...
    (comp.unix.questions)
  • Re: STDIN on the fileevent handle
    ... I am using STDIN to feed a fileevent handle and populate a status ... So, for example, if I type in one of four acceptable commands ... chomp $ARG; ... chomp $value; ...
    (comp.lang.perl.tk)
  • Re: Problems with STDIN and POST data
    ... being sent to my Perl script. ... The full code (minus my email address ... why not use CGI to read from STDIN for you? ...
    (comp.lang.perl.misc)