> ####################################
> #!/bin/sh
> date=$(date +%Y-%m-%d)
> file=sms_$date
> for i in $(seq 1 26)
> do
>         echo "Message $i: " >>$file
>         mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device 
> org.freesmartphone.GSM.SIM.RetrieveMessage $i >>$file
>         mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device 
> org.freesmartphone.GSM.SIM.DeleteMessage $i
> done
> 
> #####################################
> 

hi erik,

I tried your script though I now get 26 times
org.freesmartphone.GSM.DeviceFailed: +CMS ERROR: 321
()

this is the/your script I used:
#!/bin/sh
date=$(date +%Y-%m-%d)
file=sms_$date
for i in $(seq 1 26)
do
        echo "Message $i: " >>$file
        mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
 org.freesmartphone.GSM.SIM.RetrieveMessage $i >>$file
        mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device 
org.freesmartphone.GSM.SIM.DeleteMessage $i
done


any ideas?

_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to