I also created a script which I have it run when I get mail. It resets the sound volumes before playing, just in case they were turned off, too low or too high. It also won't play any sounds after 10:00 PM (until 7:00 AM) so if I work at night it won't disturb anyone.
Gerard Perreault [EMAIL PROTECTED] --------------------------- SCRIPT #!/bin/bash Hour=`date "+%H"` if [ $Hour -lt 7 -o $Hour -ge 22 ]; then exit 0 fi while [ `ps -ef | grep "/usr/bin/play " | grep -v grep | wc -l`! sleep 3 done /usr/bin/aumix -f $HOME/Mail/.sounds/.audioloud -L sleep 1 /usr/bin/play $HOME/Mail/.sounds/MailGerard.wav /usr/bin/aumix -f /etc/.aumixrc -L ------------------------ TYPICAL mix file vol:39:39:P bass:60:60:P treble:61:61:P synth:48:48:P pcm:50:50:P speaker:0:0:P line:0:0:P mic:0:0:R cd:67:67:P mix:0:0:P igain:44:44:P ogain:49:49:P 2002 13:49, Sevatio wrote: > On Thursday 31 January 2002 09:41am, you wrote: > > would you believe, 'play <somefile>' :-) > > try 'play --help' for details > > > > bascule > > Thanks! That did it. -- Gerard Perreault [EMAIL PROTECTED]
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com