sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #29095
Re: bash -> tsch
Tobias Tobiasen wrote:
>
> Hejsa
> Hvordan gør jeg dette i tsch? Det virker fint i bash, men jeg kan ikke
> få skilt stderr og stdout i tsch
>
> java MitProgram 1> mail -s "output" tobiasen@xxxxxxxxx 2> /dev/null
>
> T2
Jeg tror ikke, at man kan skille de to ad i tcsh... Men du kan sende
begge til /dev/null med >&/dev/null
Hov, der står jo noget i man tcsh:
The shell cannot presently redirect diagnostic output without also
redirecting standard output, but
(command > output-file) >& error-file
is often an acceptable workaround. Either output-file or
error-file may be `/dev/tty' to send output to the terminal.
Måske kan det bruges.
Mogens
--
Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@xxxxxx Homepage: http://www.crc.dk
References