View Single Post
Old 07-26-2010, 11:30 PM   #6
kfried
Junior Member
kfried began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: kindle
Thanks -- but I'm looking for the files to just magically appear in my list (no fees ); I currently already hitting my web server with the Kindle browser to download the files manually... but there's too many of them and it's tedious. So here's what I've done thus far, but have one hitch (at the end).

----------------
# Path to the destination for Books (.mobi)
DESTROOTPATH="/mnt/us/documents"
SOURCEROOTPATH="<MY PUBLIC URL TO MOBI FILES>"

# Get today's date (for file retrieval)
# DON'T RELY ON KINDLE DATE, USE A SERVER HACK FILE WITH "MY" DATE...
# TODAY=`date +%C%y-%m-%d`
wget -q "$SOURCEROOTPATH/today" -O today_file
TODAY=`cat today_file`
rm today_file

# Get the WSJ
FILENAME="The%20Wall%20Street%20Journal%20$TODAY.m obi"
SOURCEPATH="$SOURCEROOTPATH/$FILENAME"
DESTPATH="$DESTROOTPATH/$FILENAME"
if [ ! -f "$DESTPATH" ]
then
echo "Getting $FILENAME..."
wget -q "$SOURCEPATH" -P "$DESTROOTPATH/"
echo "DONE."
fi
----------------
I've put this in the /etc/crontab/root file to run every half hour and restarted the service of course. So I'm now able to get all of these files PULLED onto the Kindle.

PROBLEM: they don't appear in the Kindle Home even though they're in the right place. Browsing that dir it looks like .MBP files are generated alonside .MOBI files when they're downloaded through the browser. Any idea where the script / job is that does this generation work so I can add that to my script?
kfried is offline   Reply With Quote