Re: MultiSync problems
DaffyDuke <[email protected]> Tue, 24 May 2005 03:03:02 +0200
| Newsgroups | gmane.comp.gnome.apps.multisync.user |
|---|---|
| Organization | Club Linux Nord Pas de Calais |
| Message-ID | <1116896582.23485.45.camel@localhost> |
Hi,
Le jeudi 19 mai 2005 à 18:34 +0200, DaffyDuke a écrit :
[...]
> However, i can access to my photos or sound on my phone with obexftp. An
> Obex Plugin is planned or I had to continue in command line ? It should
> be usefull :-) Or just add support for directories as addressbook,
> contacts, tasks.
If anyone is able to create a pretty plugin for multisync, here is a
small shell to retrieve files (pictures, sounds, apps) from a Sony
Ericsson k500i locally :
daffy@ebola:~/datas/photos/phone$ cat sync_sony
#!/bin/bash
#
sudo /etc/init.d/irda-utils restart
# list folders
DIR=`pwd`
obexftp -i -l 1 > folders1.txt
cat folders1.txt|sed -e "s/></\>\n</g"|grep -v listing |grep folder|awk
-F'"' '{print $2}' > folders2.txt
# parse folders
for dir in `cat folders2.txt`
do
# list folders
echo "Retreiving files list ..."
obexftp -i -c $dir -l 1 > files1_$dir.txt
cat files1_$dir.txt|grep file|awk -F'"' '{print $2}' > files2_
$dir.txt
echo "Fetching $dir ..."
IFS=,
mkdir $dir
cd $dir
for files in `cat ../files2_$dir.txt|sed -e "s/$/\,/g"|tr -d
'\012'`
do
echo "==== $files ===="
obexftp -i -c $dir -g "$files"
done
cd $DIR
IFS=
done
cd $DIR
rm folders*.txt files*.txt
Quick and dirty but it works :-)
Any news for the vcard conversion in multisync to be compatible with old
phones and evo 2.2 ? Thanks .
PS : I add my LUG list in CC cause there were a thread about it, some
times ago.
--
DaffyDuke/Home [ jabber: daffy-WDuAAoVczo/[email protected] | iCQ: 7504537 ]
C.L.X. : http://clx.anet.fr/ | L'Autre Net : http://lautre.net/
La Passerelle : http://www.legrandmix.com/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCkn1GRjQjk2P2DCwRAnanAKC3/E2XqHLMz50+lqAmGwduuOpCBQCgyBjp RSWW9sBTgIjfiUGmjVN4nME= =m2Cq -----END PGP SIGNATURE-----