On Tue, 5 Apr 2005, Björn König wrote:

> mrspock at esfm dot ipn dot mx wrote:
>
> > I need to concatenate the standard output and then
> standard
> > error output in a file, but I need to convert the standard
>
> > output into PostScript before the concatenation.
> >
> >           program <stdin >stdout  2> stderr
> >           cat stdout > out
> >           a2ps stderr >> out
> >
> > a2ps is in the ports and it converts plain text into
> PostScript.
> >
> > The problem is that I don't want to use the temporary file
>
> > that I used above (stdout, stderr, out), I just want a
> "filter"
>
> program < stdin 3>&1 1>&2 2>&3 | a2ps
>
> Regards Björn
>

Thanks for your help,  Björn.

I think I'd better study a little more this redirection operators.

Thanks again.

        Eduardo.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to