View Single Post
Old 08-25-2011, 01:20 PM   #15
phisalis
Member
phisalis began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2011
Device: kindle3
success

I thought I ought to let you know that this approach works perfectly. The following script just moves the ICEauthority file somewhere else, runs Calibre - which happily completes all the newsfeeds, then, when I quit Calibre,it puts the ICEauthority file back where it belongs and everything is wonderful.

#!/bin/bash
# set variables
ICE="/home/steve/.ICEauthority"
ICETMP="/home/steve/keepsafe/.ICEauthority"
CALIBRE="/home/steve/software/calibre/calibre/calibre"
# check ICEauthority file exists
if [ -e $ICE ];
then
mv $ICE $ICETMP
else
echo "No such file"
fi
# run calibre now ICEauthority file is out of the way
$CALIBRE
# when calibre quits we put the file back where it should be
mv $ICETMP $ICE
# quit shell when everything is done


It may be quick and dirty but it solves the problem. If you use it then change the paths in the variables to suit your own system. Oh, and some error checking would be nice
phisalis is offline   Reply With Quote