incearca:
program 2>&1
care face redirect stderr -> stdout
sau:
program > fisier 2>&1
care face redirect stderr si stdout -> fisier
( observatie: lasi la sfarsit redirectul de la stderr->stdout )
more info: man bash
---
Bogdan Velcea
Network Administrator
Romania Data Systems
http://www.rdsnet.ro
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such a case, you should destroy this message and
kindly notify the sender by reply e-mail.
On Wed, 20 Jun 2001, C. A. wrote:
>
> On Wed, 20 Jun 2001, Bogdan Marinca wrote:
> > As vrea sa redirectionez stderr (descript 3) printr`un pipe de la un
> > proces la altul din bash.
> >
> > Daca fac asha
> >
> > progr1 | progr2
> >
> > evident progr2 primeste stdout la input iar eu ash vrea sa primeasca
> > stderr`ul lu` progr1 ...
> >
> > Cum sa fac?
> progr1 2>> fisier
> progr2 < fisier
> Ia incearca asa.. Cine stie, poate merge
> [EMAIL PROTECTED]
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
>
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.