In theory this should work, I tried the playaudio line in putty and I can hear the sound, but inside the script it doesn't, any idea?PHP Code:
while test 1
n=`$sql /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
if [ "$n" -gt 0 ]
playaudio is from Erica Sadun utilities.