Hi all,
There is a java app that writes directly to the pulseaudio MASTER channel at full volume twice a day. I'm pretty sure the neighbors hear it. My idea is to use crontab to run at 12:59 Monday-Friday. It waits 59 seconds, mutes the audio, waits 6 more seconds and unmutes the audio. From the command line it works. I can't make it work using crontab. It does show up in the syslog.
This is in my /etc/crontab (all on one line)
59 12 * * 1-5 root test -x /usr/local/bin/mute && \ ( \ /bin/sleep 59 ; \ /usr/local/bin/mute ; \ /bin/sleep 6 ; \ /usr/local/bin/unmute \ )
This is /usr/local/bin/mute and unmute:
sink=$(pactl info | grep "Default Sink" | cut -d' ' -f3) pactl set-sink-mute "$sink" 1 (unmute uses 0)
Anybody explain why this doesn't do what I intend?
Thanks, Mike Wright