Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50107

Running multiple calibre-server.exe instances

$
0
0
Hi - I have searched through the forum and still just can not understand how to start two calibre-servers exposing two different libraries on the same PC.

- windows 11 pro
- one library stored in a folder named c:\bob's library
- a second library stored at c:\jane's library

Calibre 4.9.5 installed - gui can switch between libraries with no problem

I would like to start two instances of the calibre-server: one for bob's library on port 8080 and a second calibre-server for jane's on port 8081.

I have tried a simple .bat file containing:
start /min calibre-server.exe -p 8080 --with-library "C:\Jane's Library"
start /min calibre-server.exe -p 8081 --with-library "C:\Bob's Library"

and a vbs file:

Set sh = CreateObject("WScript.Shell")
exe = """C:\Program Files\Calibre2\calibre-server.exe"""
' Jane isolated environment
sh.Run "cmd /c set CALIBRE_USER_DIR=C:\CalibreEnv\Jane && start ""JaneServer"" " & exe & " ""C:\Jane's Library"" --port=8080", 0, False
' Bob isolated environment
sh.Run "cmd /c set CALIBRE_USER_DIR=C:\CalibreEnv\Bob && start ""BobServer"" " & exe & " ""C:\Bob's Library"" --port=8081", 0, False

In both cases, the first library is available on 8080 but the second does not start...

I know there is an answer, I just know what the answer is... Can someone point me in the right direction... Thanks

Viewing all articles
Browse latest Browse all 50107

Latest Images

Trending Articles



Latest Images