Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner


Thread Tools Search this Thread
Old 05-28-2011, 10:30 AM   #1
Junior Member
dunryc began at the beginning.
Posts: 1
Karma: 10
Join Date: May 2011
Device: sony prs-350
guardian newpaper down load script

sorry about the unimpressive post title I got my prs-350 a few weeks ago and thought i would post the script i use to down load the daily guardian newspaper as a pdf.

System is Ubuntu and it requires pdftk to run I would appreciate any comments that would help me improve this little script.

I run this as a cron job every morning Mon to Fri so if my sony is attached it automatically puts the newest version of the guardian on my device so i can read through it on the way to work

regards dunryc

#check if the prs-350 is attached v9a usb
hal-find-by-capability --capability storage | grep Sony_PRS_350 > deviceattached

#check if the file deviceattached is empty if it is then sony reader is not plugged in

if [ -s deviceattached ]; then

echo "found your sony prs-350"
echo "entering directory"
echo " creating pdf "

#create the guauridan pdf

TODAY=`date +%Y_%m_%d`
wget -r -l1 -H -t1 -nd -N -np -A.pdf -erobots=off
pdftk *.pdf cat output guardian
rm *.pdf
mv guardian guardian.pdf
cp -f guardian.pdf /media/READER/database/media/books
rm -f guardian.pdf

dunryc is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Guardian, modified ajnorman Recipes 20 01-10-2014 11:02 AM
Can you modify a feedbook newpaper? palex481 Deals, Freebies, and Resources (No Self-Promotion) 2 03-20-2009 03:49 PM
Guardian: No Kindle for the UK (or anywhere else outside US) Argel News 28 06-10-2008 05:43 AM
Helper script to load books into fbReader? nekokami iRex 2 05-21-2007 11:33 AM
Les Echos, Chinese Iliads and other Newpaper E-reader deals jæd News 3 02-07-2007 08:40 AM

All times are GMT -4. The time now is 07:24 PM. is a privately owned, operated and funded community.