While you're at it, look at gsmpb from gsmutils or gsmlib. It works for me on most phones.
#!/bin/sh gsmpb -s /dev/rfcomm0 -d ~/.phonebook.SM -p SM sleep 5 # to let the phone reset itself gsmpb -s /dev/rfcomm0 -d ~/.phonebook.ME -p ME
Then you can swap the arguments around somewhat. This seems not to work for multiple numbers per entry as in my Nokia 6310i, it only gets one of them. On the other hand, the Sony T610 exported numbers as Name/M and Name/H so there were no collisions.
I have a corresponding script using gsmsendsms which reads ~/.phonebook.* to send SMS from the laptop.
no subject
Date: 2008-06-29 09:57 pm (UTC)#!/bin/sh
gsmpb -s /dev/rfcomm0 -d ~/.phonebook.SM -p SM
sleep 5 # to let the phone reset itself
gsmpb -s /dev/rfcomm0 -d ~/.phonebook.ME -p ME
Then you can swap the arguments around somewhat. This seems not to work for multiple numbers per entry as in my Nokia 6310i, it only gets one of them. On the other hand, the Sony T610 exported numbers as Name/M and Name/H so there were no collisions.
I have a corresponding script using gsmsendsms which reads ~/.phonebook.* to send SMS from the laptop.