Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2005 10:26:14 -0500 (CDT)
From:      Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
To:        =?iso-8859-1?B?Qmr2cm4gS/ZuaWc=?= <bkoenig@cs.tu-berlin.de>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: shell question
Message-ID:  <20050406102407.O16224@Gina.esfm.ipn.mx>
In-Reply-To: <20050405172621.7155D12B015@eurystheus.local>
References:  <20050405172621.7155D12B015@eurystheus.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Apr 2005, Bj=F6rn K=F6nig 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=F6rn
>

Thanks for your help,  Bj=F6rn.

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

Thanks again.

=09Eduardo.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050406102407.O16224>