I tested pschedule in fatdog64 812 to see if it could schedule an alert with a continuous sound.
Exiting will shut off sound.
I noticed that crond service is not turned on by default, so that needs to done.
Then launch pschedule and click on 'Add'.
Fill in time and the command.
Code: Select all
#!/bin/sh
# continuous sound is heard until window is closed
echo '
#!/bin/sh
while [ 1 ] ; do aplay /usr/share/audio/2barks.au ; done 2>/dev/null
' >/usr/sbin/continous_script.sh
#permissions must be given to /usr/sbin/continous_script.sh
chmod 755 /usr/sbin/continous_script.sh
/usr/sbin/continous_script.sh &
pid=$!
# when gtkdialog window is closed -- kill is executed
export QUIT='<window title="Continuous Sound" icon-name="ptiming">
<vbox>
<hbox homogeneous="true"><text><label>"'$(date)'"</label></text></hbox>
<hbox homogeneous="true"><text><label>"Exit to kill sound"</label></text></hbox>
<hbox>
<button>
<label>"Exit"</label>
<action type="exit">CLOSE</action>
</button>
</hbox>
</vbox>
</window>
'
gtkdialog -p QUIT -c
kill -9 $pid 2>/dev/null
Here is the compressed script --> continuous_sound.sh
You can decompress it and place it anywhere (such as /root)
Make sure it can be executed.
____________________________________
I looked in /var to see what was in the crontab file
__________________________________________