01-21-2018, 04:51 AM | #1 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
calibredb --password <pwfile>
Hi Kovid,
it seems I forgot something. Can you give me a hint? I can do the following CLI command: calibredb list --with-library "http://didel-dum:12345/" --fields=authors,title,*cod_y --username TestUser --password TestPw --for-machine>_y.txt with this options I became the info forbidden or the username/password combination is incorrect: calibredb list --with-library "http://didel-dum:12345/" --fields=authors,title,*cod_y --username TestUser --password stdin --for-machine>_y.txt Same for the combination password file. calibredb list --with-library "http://didel-dum:12345/" --fields=authors,title,*cod_y --username TestUser --password dideldum.txt --for-machine>_y.txt I thought, this had work when I test it long time ago but now it seems I'm not able to get this running again with a password file. Additional question, if I remember correct, I didn't need the switch --username if I use a file but maybe I am wrong. In the past I used a text file like dideldum.txt with a single line including username and password with a space between: TestUser TestPw. I am a bit lost on this, as it seems that no combination will do what I like to do except the first version as command line with direct input. System Windows10-64Bit actual version calibre 3.1.5.0 64Bit |
01-21-2018, 05:02 AM | #2 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See calibredb --help
The syntax is Code:
--password <stdin> --password <f:/path/to/file> |
Advert | |
|
01-21-2018, 06:03 AM | #3 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Yes, this was what I thought in the first time too, but I get always a The username/password combination is incorrect and for <stdin> there is no request for password input but a AttributeError: 'function' object has no attribute 'getpass'
I did it this way --password "<stdin>" --password "<c:\Users\X\Documents\Calibre\Calibredb\dideldum. txt>" --password "<c:/Users/X/Documents/Calibre/Calibredb/dideldum.txt>" I did set the ban for testing to 0. |
01-21-2018, 07:51 AM | #4 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Make sure your text file has no trailing newline. As for stdin not working, probably some windows issue, I've never tried it on windows.
|
01-21-2018, 07:52 AM | #5 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and the file needs to start with f: so like this
<f:c:/whatever/> |
Advert | |
|
01-21-2018, 07:57 AM | #6 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-22-2018, 03:49 AM | #7 | |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Quote:
Maybe you can modify the manual from: https://manual.calibre-ebook.com/gen...calibredb.html --password Password for connecting to a calibre Content server. To read the password from standard input, use the special value: <stdin>. To read the password from a file, use: <f:/path/to/file>.) to something like: --password Password for connecting to a calibre Content server. To read the password from standard input, use the special value: <stdin>. To read the password from a file, use: <f:/path/to/file>. Angle brackets and f: for reading from a file are required. Some OS shell like Windows standard shell need for processing quotes to escape. Sample: --password "<f:c:/path/to/file>" A password text file only include a password without trailing newline. |
|
01-22-2018, 04:19 AM | #8 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-23-2018, 07:42 AM | #9 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Thanks.
|
01-26-2018, 10:13 AM | #10 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Short feedback, <stdin> is working now too with 3.16.0. Thanks again.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibredb export | phossler | Library Management | 18 | 07-18-2015 07:15 PM |
calibredb exception | ZioNemo | Library Management | 3 | 02-04-2014 09:10 PM |
subseries_index does not appear in calibredb | reup | Library Management | 4 | 12-16-2011 05:46 AM |
calibredb remove ... | BerlinerKindl | Library Management | 6 | 11-25-2011 09:24 PM |
calibredb | iomari | Calibre | 6 | 10-10-2011 08:35 AM |