Here is the fix for redirecting lilypond output to a file for Cygwin users where the bash shell does not keep a history of screen output.
Clive Catterall ------------------------ baroque flutes made using traditional methods and materials http://www.flutes.fsbusiness.co.uk ----- Original Message ----- From: Mats Bengtsson <[EMAIL PROTECTED]> To: clive CATTERALL <[EMAIL PROTECTED]> Sent: Monday, March 03, 2003 2:02 PM Subject: Re: FAQ? > Please keep the discussion on the mailing list, for the > benefit of yourself since you get access to the collected > expertise on the list and for the benefit of others who experience > similar problems. > > Lilypond, as most other UNIX programs, sends warnings and error > messages to standard error instead of standard output. > If you want to include them in your log file, use > ly2dvi .... > log.txt 2>&1 > this is described in the manual pages for sh or bash and in > introductions to UNIX, but I always find it difficult to remember > since I normally use tcsh instead of bash as command shell. > Similarly, you can do > ly2dvi ... | less 2>&1 > > /Mats > > > clive CATTERALL wrote: > > thanks for the pointers, but I'd already exhausted them. I had already > > looked inthe ref manual and the tutorial. > > > > The problem I'm having is trapping the error output from either ly2dvi or > > lilypond itself. I cannot use the standard > symbol as the text still > > comes onto the screen. The only thing I could find in the searchable > > archives was a reference to simply redirecting the output as would be normal > > in a Unix environment (which for some reason does not work for me) > > > > piping the output into less (the Cygwin version of more) doesn't seem to > > work (well less runs but I cannot move backwards in the screenful and the > > save option produces an empty file). The bash window on a W98 installation > > does not keep a history of messages unlike some other Unix-like systems I > > have used in the past (SG and the like). I'm at a loss as to what to do, as > > if there are more than one or two syntax errors they shoot off the top of > > the screen. > > > > Apologies for the non-lilypond content, but I've spent a good number of > > hours trying to search through the Cygwin and Lilypond documentation and > > archives. If there are other Cygwin/lilypond users out there I'd love to > > discuss this off list! > > > > Clive Catterall > > > > > > -- > ============================================= > Mats Bengtsson > Signal Processing > Signals, Sensors and Systems > Royal Institute of Technology > SE-100 44 STOCKHOLM > Sweden > Phone: (+46) 8 790 8463 > Fax: (+46) 8 790 7260 > Email: [EMAIL PROTECTED] > WWW: http://www.s3.kth.se/~mabe > ============================================= > > _______________________________________________ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user