Am Montag, 23. Mai 2011 21.53:40 schrieb robin:

Hi Robin,
> 
> I tried your script though I now get 26 times
> org.freesmartphone.GSM.DeviceFailed: +CMS ERROR: 321
> ()
> 
> this is the/your script I used:
The lines are "broken" through mail. Try it this way:
#!/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
> 

or just put the two lines starting with mdbus2 and the next one in one line, 
so you have two lines starting with mdbus2 at the beginning (with space 
between "Device" and "org."...

Hope that helps

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

Reply via email to