I made it work using the script in your rapid$hare file, no need to copy all of erica's utilities in that folder
just in case, this is the script:
[edit] It only works when the phone is plugged to the PC or turned on.PHP Code:#!/bin/sh
smsnpath=/usr/local/smsnotify
sql=$smsnpath/sqlite3
vibrate=$smsnpath/vibrator
audiofilea=/Library/Ringtones/Sonar.m4r
while test 1
do
n=`$sql /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
if [ "$n" -gt 0 ]
then
/var/root/bin/playaudio $audiofilea & $vibrate
fi
c=`$sql /var/root/Library/CallHistory/call_history.db 'select count(*) from call where flags=4 and duration=0 and ROWID=(select max(ROWID) from call)'`;
if [ "$c" -gt 0 ]
then
/var/root/bin/playaudio $audiofilea & $vibrate
fi
sleep 120
done



LinkBack URL
About LinkBacks









Reply With Quote
Bookmarks