lilypond-user
[Top][All Lists]
Advanced

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

Re: Catching error messages


From: Cameron Horsburgh
Subject: Re: Catching error messages
Date: Mon, 12 Feb 2007 12:26:39 +1100
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Feb 11, 2007 at 03:13:36PM -0800, Graham Percival wrote:
> Cameron Horsburgh wrote:
> >On Sun, Feb 11, 2007 at 11:40:45AM -0800, Graham Percival wrote:
> >>Cameron Horsburgh wrote:
> >>>I'd love to be able to specify a log file for either each file or the
> >>>entire run. Does this exist? If not, does anyone have any idea how I
> >>>might be able to do this?
> >>for f in *.ly ; do lilypond $f > $f.log ; done;
> >>
> >>Something like that, at least.
> >>
> >
> >Yeah, that's what I tried first. It seems the output is on stderr,
> >not stdout.
> 
> http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
> 
> lilypond $f &> $f.log
> 

Yeah, I eventually got that, or something pretty close. It can be pretty
useful. I might write a page for the docs regarding batch processing.
The main problem, of course, is that this is OS dependent.

If I were to do that, where would be the best place to put it? Two
places come to mind -- first, 4.1.3 might be expanded to suggest using
separate files for each part in an ensemble. That's the main use I
have for batch processing -- twenty music files for each instrument
which are \include-d in instrumental parts and similarly combined in a
conductor's score. I'll normally run that with a for-do-done loop. (Is
this set up explained in the manual? I think it was once, but it might
have moved.) 

The other obvious place is in section 13.1, since that's where I went
first to see if there were options to help with log files and the
like. This is my preference.

Experience tells me that different commands operate differently, too.
For example, 'convert-ly -e *ly' works as expected. 'lilypond *ly'
works, but with a huge load on the machine, like it's processing all
files concurrently.

(What would be really nice, but
getting-off-topic-and-besides-I-don't-want-to-do-it would be a tutorial about
how to use Makefiles and preprocessors with LilyPond. I know there are
a few people who do such things. I don't think it would belong in the
LilyPond docs per se, and thus not really our concern, but if somebody
were to do such a thing it could be useful to a lot of Lily users.)

Thoughts?


-- 

=============================================
Cameron Horsburgh

=============================================





reply via email to

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