|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
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 |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See calibredb --help
The syntax is Code:
--password <stdin> --password <f:/path/to/file> |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
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. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
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.
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
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 | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#7 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
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. |
|
|
|
|
|
|
#8 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Thanks.
|
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Short feedback, <stdin> is working now too with 3.16.0. Thanks again.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calibredb remove ... | BerlinerKindl | Library Management | 9 | 09-22-2025 06:07 AM |
| Calibredb export | phossler | Library Management | 18 | 07-18-2015 08:15 PM |
| calibredb exception | ZioNemo | Library Management | 3 | 02-04-2014 10:10 PM |
| subseries_index does not appear in calibredb | reup | Library Management | 4 | 12-16-2011 06:46 AM |
| calibredb | iomari | Calibre | 6 | 10-10-2011 09:35 AM |