Re: Procmailrc to play sound async when message arrives
There's probably an easier way than this, but you could use perl to fork()
the bplay processes, so they don't block.
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Mon, 22 Sep 2003 tb.nospam@comcast.net wrote:
> I'm a procmail newb. I've written a recipie to play a WAV when a
> message arrives. It works, it sounds nice, but it's synchronous:
>
> :0 c
> * ^X-Mailing-List:.*lists.debian.org*
> | /usr/bin/bplay /x/x/click_x.wav
>
> Since this WAV takes ~1 sec to play, procmail blocks 1 sec per message.
> It ends up taking a long time with a bunch of messages.
>
> Is there any way I can make the clicks "overlap" with multiple messages
> (cl-cl-cl-cl-click vs click.pause.click.pause.click.pause.click) and the
> whole process to run asynchronously to procmail?
>
> Thanks
> -Tom
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: