Dear John, thanks for Your reply! I've changed the script a little bit. But, strange enough, the pdfLaTeX doesn't work well with my machine. I don't know why! And another strange thing is: if I move a file in another direction, I get problems with processing via "lilybuch". Maybee my script is wrong:
lilybuch( ) { mkdir -p lilpondbuchdateien/ lilypond-book --output=lilpondbuchdateien "$1".tex cd lilpondbuchdateien/ latex "$1".tex dvips "$1".dvi ps2pdf "$1".ps
mv "$1".pdf ../ cd ../ rm -r lilpondbuchdateien/ kpdf "$1".pdf & }