#!/bin/bash kill `pgrep vlc` kill `pgrep ffmpeg` php /opt/SmartAlarm/alarm.php | festival --tts lame --scale 3 /opt/SmartAlarm/tmp/tmp.mp3 /opt/SmartAlarm/audio_recordings/`date +%Y-%m-%d`.mp3 rm /opt/SmartAlarm/tmp/tmp.mp3 php justwave/justwave.cli.php /opt/SmartAlarm/audio_recordings/`datte +%Y-%m-%d`.mp3 wavedir=/opt/SmartAlarm/audio_img/ width=600 height=75 nocache=1 echo "Alarm finished."