[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zweigeteilte Ausgabe



Hi Werner Gast, *,

Werner Gast wrote on Wed Sep 29, 2004 at 09:29:44PM +0200:
> sh myscript myargument > myout.log 2>myout.err
> funktioniert ebensowenig wie 
> sh myscript myargument > myout.log 2>&1
                          ^
Ohne zu wissen ob das was ausmacht, aber laut manpage muesste es 
sh myscript myargument >myout.log 2>&1
heissen ...


1651-   Redirecting Standard Output and Standard Error
1652:       Bash allows both the standard output (file descriptor 1) and the  stan-
1653-       dard  error  output  (file  descriptor  2) to be redirected to the file
1654-       whose name is the expansion of word with this construct.
1655-
1656-       There are two formats for  redirecting  standard  output  and  standard
1657-       error:
1658-
1659-              &>word
1660-       and
1661-              >&word
1662-
1663-       Of the two forms, the first is preferred.  This is semantically equiva-
1664-       lent to
1665-
1666-              >word 2>&1
1667-
-- 
so long,
Rainer Bendig aka mindz                 PGP/GPG key   (ID: 0xCC7EA575)
http://unresolvedissue.org              Get it from wwwkeys.de.pgp.net



Reply to: