Bruno Crochet wrote:
> 
> On Fri, 1 Nov 2002, Arnaud Burlet wrote:
> 
> > peut etre que (sous bash) :
> > arecord | vu 2>&1 > fic.wav | vugraph
> >
> > voir man bash pour des explications ....
> 
> Ca marche! Mais j'avoue ne pas bien comprendre pourquoi (meme apr�s un man
> bash)... Si on r�unit les canaux 2 et 1 avant "> fic.wav" comment se
> fait-t'il que 2 n'aille pas dans fic.wav ??
> Y a t-il une adresse "sympa" ou tout ceci est expliqu� de fa�on
> d�taill�e avec qlq exemples ?

Dans la man page de sh, bash aussi je suppose. En bref, vu 2>&1 >
fic.wav est diff�rent de vu > fic.wav 2>&1

  If you want to redirect both standard output and standard error output
to
  the same file, enter:

       command > file 2>&1

  The order here is significant.  First, the shell associates file
descriptor
  1 with file; then it associates file descriptor 2 with the file that
is
  currently associated with file descriptor 1.  If you reverse the order
of
  the redirections, standard error output goes to the display and
standard
  output goes to file because at the time of the error output
redirection,
  file descriptor 1 was still associated with the display.


-- 
Paul-Jean Cagnard
"Gianna Nannini, pourquoi tant de N ?"
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se d�sabonner aussi.

Répondre à