I've got an interesting problem with audio on svn_124. I'm at a loss
as to what to try next, partly because this is one of those nasty
intermittent problems.

I'm trying to play chimes on the quarter hour. I invoke a simple shell
script from cron to do so. The script is short enough I'm including it
inline:

---- begin script
#!/bin/sh

minutes=$(date +%M)
if [ "$minutes" == "00" ]
then
    file=$(date +/export/home/mwm/sounds/westminister/west%I.wav)
else
    file=$(date +/export/home/mwm/sounds/westminister/west%M.wav)
fi
echo $file >> /tmp/chimes

pfexec /usr/bin/esdplay $file >> /tmp/chimes 2>&1

--- end script

This works. It plays the chimes - for an hour or so. Then it
stops. When I check the system, I find the esdplay command stacked up
waiting. If I kill them, things start working fine. Here's an example
from ps:

USER       PID %CPU %MEM   SZ  RSS TT       S    START  TIME COMMAND
root     15626  0.0  0.1 3080 1864 ?        S 19:45:00  0:00 /usr/bin/esdplay 
/export/home/mwm/sounds/westminister/west45.wav

Using /usr/bin/audioplay instead of esdplay produces the same
result. Redirecting the output in an attempt to catch error messages
from the player improved things, in that it now plays for longer, but
didn't solve the problem.

Anyone have any suggestions as to what to look for a solutions? A
DTrace script that might let me know what the hung processes are hung
on? Any suggestions at all?

    Thanks,
    <mike
-- 
Mike Meyer <mwm at mired.org>           http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to