Quote:
Originally Posted by Ersatzreifen
IF there was a command to do the news download. That's a big if.
Peter's post lists two different commands:
/opt/calibre/ebook-convert --help
Convert an ebook from one format to another.
and:
/opt/calibre/calibre-smtp --help
Send mail using the SMTP protocol.
Which one just downloads news? Peter didn't say. The --help feature of each doesn't mention fetching news, so unless you can demonstrate how to use ebook-convert or calibre-smtp just ti initiate a news fetch from the command line, then it looks to me like they weren't designed to do that.
One is for converting one book to another format, the other for sending books by email. NEITHER ONE can be used from the command line to download scheduled news feeds, can they? So no, his non sequitur does not tell me how to initiate a news download from the command line. Using crontab isn't the problem. Using crontab is a fricking piece of cake. So if
ebook-convert or calibre-smtp has an undocumented feature of fetching news from the command line, then pray tell precisely how. I don't see any documentation on it, nor is it intuitive.
|
You might want to actually read everything. The FAQ page is at
https://manual.calibre-ebook.com/faq...n-linux-server. It explicitly tells you that that command will download the news.
And if you had actually read the output from the command you would have seen it handles the news recipes. (Highlighted in red below to make it clear.)
Code:
E:\Download>"C:\Program Files\Calibre2\ebook-convert.exe"
Usage: ebook-convert.exe input_file output_file [options]
Convert an ebook from one format to another.
input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command.
The output ebook format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived from the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a directory and an "open ebook" (OEB) consisting of HTML files is written to that directory. These files are the files that would normally have been passed to the output plugin.
After specifying the input and output file you can customize the conversion by specifying various options. The available options depend on the input and output file types. To get help on them specify the input and output file and then use the -h option.
For full documentation of the conversion system see
https://manual.calibre-ebook.com/conversion.html
Whenever you pass arguments to ebook-convert.exe that have spaces in them, enclose the arguments in quotation marks. For example "C:\some path with spaces"
Options:
--version show program's version number and exit
-h, --help show this help message and exit
--list-recipes List builtin recipe names. You can create an ebook from a
builtin recipe like this: ebook-convert "Recipe Name.recipe"
output.epub
Created by Kovid Goyal <kovid@kovidgoyal.net>
And do you really think I would have wasted my time replying if PeterT had been wrong? No, I would have replied to PeterT telling him why he was wrong. Of course, I know both PeterT and itimpi both well enough here to know I'm not likely to find them wrong except when I feel like pedantic.