On Thu, May 3, 2012 at 6:14 PM, Yihui Xie <x...@yihui.name> wrote:
> Or add a last code chunk in Sweave:
> <<done,echo=FALSE>>=
> alarm()  # equivalent to cat('\a')
> @
This is a nice idea. Unfortunately alarm() makes no noise on my
system---I guess it's some small configuration issue---, but this
reminds me of system(). So one can do something similar:

system("play /tmp/03Miserere.ogg")

It makes the LyX status bar go crazy, but otherwise seems to work just fine.

I'm wondering: does LyX have a LFUN_SYSTEM_COMMAND or similar that
would allow to execute arbitrary system commands?


Reply via email to