Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2008, 08:10 PM   #1
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
calibre & cron problem

I am trying to set up cron to gather several feeds on a scheduled basis. The following command generates the feeds file for the Associated Press and stores the file as "associated press.lrf" in a folder called 'newspapers' on the desktop.

Code:
feeds2lrf  --output='desktop/newspapers/associated press.lrf' 'Associated Press'
When executed from the terminal on my MacBook Air it does exactly that. However when executed from within cron it does everything through the rationalizing of the fonts but does not save the file and there is no error message. It simply ceases after the rationalization of the fonts.

What have I missed?
Deputy-Dawg is offline   Reply With Quote
Old 06-19-2008, 02:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to supply an absolute path to --output
kovidgoyal is offline   Reply With Quote
Advert
Old 06-19-2008, 05:37 PM   #3
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Kovid
I must be extremely dense today! But:

From the terminal the command:

Code:
feeds2lrf --output=test.lrf 'Associated Press'
Writes the file "test.lrf" to the directory: Macintosh HD/User/Me

And the command"

Code:
feeds2lrf --output=Desktop/newspapers/test.lrf 'Associated Press'
writes the file to folder "newspapers" on the desktop

On the other hand from crontab the command:

Code:
feeds2lrf --output=test.lrf 'Associated Press'
writes the file "test.lrf" to the root of "Macintosh HD"

and the command:

Code:
feeds2lrf --output='Macintosh HD'/Users/Me/Desktop/newspapers/test.lrf 'Associated Press'
writes nothing at all and the command:

Code:
feeds2lrf --output='Macintosh HD':Users:Me:Desktop:newspapers:test.lrf 'Associated Press'
writes a file "Macintosh HD/Users/Me/Desktop/newspapers/test.lrf"

To the root of "Macintosh HD"

(note that the slashes are part of the file name and are not path delimiters.)

Now I know I must have done something incredibly stupid, but I am lost.
Deputy-Dawg is offline   Reply With Quote
Old 06-19-2008, 05:58 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use --output="/Users/Me/output.lrf"
kovidgoyal is offline   Reply With Quote
Old 06-19-2008, 09:56 PM   #5
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Darn, that should have been obvious. You said absolute, not fully delimited. In any event it works like a champ now.

Thanks.
Deputy-Dawg is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stanza & Calibre & IPAD thomasmorus Calibre 1 07-02-2010 12:44 PM
PRS Fonts, PDF gray && Calibre Hranostak Sony Reader 5 11-24-2008 11:50 AM
PRS Fonts, PDF gray && Calibre Hranostak Sony Reader 1 11-22-2008 02:50 PM
problem using convertlit & Calibre Gravitas Sony Reader 5 09-25-2008 04:43 AM
(Problem Resolved) AARGGGGHHHHH!!! Sony #&%@&^#(*%!*#& CS DrMoze Sony Reader 11 09-06-2007 11:17 AM


All times are GMT -4. The time now is 09:32 PM.


MobileRead.com is a privately owned, operated and funded community.