[Tellico-users] Exporting tellico file from command line

Bruno Cornec bruno at victoria.frmug.org
Tue Mar 17 00:51:20 UTC 2015


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.
-- 
Des infos sur la musique ancienne  -- http://www.musique-ancienne.org
Des infos sur les logiciels libres -- http://www.HyPer-Linux.org
Home, sweet musical Home -- Lover of Andromède, Béatrice, Early Music, 
Josquin, Linux, Mélisande, Recorder, and Ségolène (not in that order)


More information about the tellico-users mailing list