lilypond-devel
[Top][All Lists]
Advanced

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

Re: 2.4.0 on cygwin - Bad fd number


From: Anthony W. Youngman
Subject: Re: 2.4.0 on cygwin - Bad fd number
Date: Sat, 6 Nov 2004 17:29:57 +0000
User-agent: Turnpike/6.02-U (<kadi9FnjOBL6XNAiRMnYuwUxdX>)

In message <address@hidden>, Han-Wen Nienhuys <address@hidden> writes
Error invoking `latex \\nonstopmode \\input simple.tex 2>&1 1>&
/dev/null '. Return value 512Error invoking `dvips  -t a4
-u+ec-mftrace.map -u+lilypond.map -Ppdf simple 2>&1 1>& /dev/null '.
Return value 512

Ah wait, the shell is struggling with the redirection syntax.

are there any unix gurus that know the correct syntax for redirecting
all output to /dev/null?

Others have given you the correct syntax - "> /dev/null 2>&1". Apart from your extra &, what you've done is redirect stderr to stdout, then redirect stdout to /dev/null. And it hasn't worked because stderr and stdout (even though they may be pointing at the same place) are *always* different pointers. iirc stdin is fp1, stdout is fp2, and stderr is fp3. So what you did is copy the contents of fp2 (the terminal) to fp3, *then* replaced fp2 with a pointer to /dev/null. Oops. The order in which you do things is important (and yes, the reason I know this is because it's bitten me, too :-)

Cheers,
Wol
--
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
HEX wondered how much he should tell the Wizards. He felt it would not be a
good idea to burden them with too much input. Hex always thought of his reports
as Lies-to-People.
The Science of Discworld : (c) Terry Pratchett 1999




reply via email to

[Prev in Thread] Current Thread [Next in Thread]