[Tellico-users] Exporting tellico file from command line

Louis-Philippe Véronneau tech at sogeecom.org
Tue Mar 17 04:01:59 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Thanks for your time, but sadly, I'm not even running X on that server, KDE even less. But I did find a way thanks to Robby's kind advice.

- -- 
Louis-Philippe Véronneau - Gestionnaire de réseau informatique
SOGÉÉCOM - Société Générale des Étudiantes et Étudiants du Collège de Maisonneuve
3800, rue Sherbrooke Est (local D-2610)
Montréal, Québec, Canada, H1X 2A2
Téléphone: 514-254-7131, poste 4515
Site web: sogeecom.org


On 2015-03-16 20:51, Bruno Cornec wrote:
> On Mon, Mar 16, 2015 at 05:09:42PM -0400, Louis-Philippe Véronneau wrote:
>> Does anybody know how this could be done? Tellico does not seem to have a cli interface. I would not mind using the C++ code that does this,
>> but since I'm not familiar with Tellico's source code, I fear that looking myself for it would take ages...
> 
> I've done something with a similar goal as yours with this script:
> 
> #!/bin/bash
> 
> BUS=/usr/lib64/qt4/bin
> 
> killall tellico dir=$HOME/Perso/Data # Looping on all my collection files for i in Disques BD DVD Livres Partitions; do tellico $dir/$i.tc& 2>&1
> > /dev/null sleep 5 $BUS/qdbus org.kde.tellico /Tellico org.kde.tellico.exportCSV $dir/$i.csv $BUS/qdbus org.kde.tellico /Tellico
> org.kde.tellico.exportHTML $dir/$i.html chmod 755 $dir/$i*_files chmod 644 $dir/$i.html $dir/$i*_files/*.* chmod 755 $dir/$i*_files/pics killall
> tellico done
> 
> Note that this script can only be run when KDE is running. So that prevents its usage with cron (at least I've not found a way to make it work up
> to now from cron).
> 
> Any other feedback welcome ! Bruno.
> 



-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVB6c2AAoJEHrqxOxqqgqX6k0QAIrqwMj5tY95xkp+B08w2g4P
8ZsUiMr4VOYGjmpOcyKr9I6MPV+zf2NdGYn2RaAbdezXGxr8Fug873vhM1wiiK0R
+DQKrfVoWN7CYa55MrohEnrr1WwDAaR8jxenu9eBU48rn+1/i69ND7aGHF4MoDoC
C11PMmBNv42NGMy94faK9xdyhEMmXIcCVRqeke+x2KORxDezF/K3G8IRnNSViuGg
NG5Z+lvE9DJoaLyY4AfscyqAhLMEXXh38gs96A3SrNFtAgk2jEAUZ4HSiaAP1Xi/
D7KPmwXj3zz51jF5S8XfFZHgjXnT9MkPRWHQ3CngLwfuH8Dli+irDpt45dPM0eDL
sP8U5fxbbGeEKRI79CmMpBg6RNMGvRNjbGZ6Fl1BDWEamT3w1wUV20BZIaIvLZLb
Y59XVkzxmvjz89dQhYk5wtGsqGpqTyLFZnijEdIsi83dyqmbcibIgrHh/Gbal7V3
UJ8Ab639zAIAEjRN3L9d4LMT8W55CZp9wWzEi/luyY6Z1DW/adegIR4WVjYGC129
sPevCQFXihEMoL0+elrKM0VxcZf2v/r/x5akwco/Od8Ym6KkoJ3j+yWvtAUNzBCT
mFKvnBkGxxAWHoTwajdHdHXFs0b62RhSS4vya2xQ+bR0n0437zBBjNl7D3RYIldn
HL0NwYe9mcg5Iy8X2vlP
=i6+Y
-----END PGP SIGNATURE-----


More information about the tellico-users mailing list