storescp running as a service

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
uzleuven
Posts: 13
Joined: Fri, 2009-08-28, 15:04

storescp running as a service

#1 Post by uzleuven »

Hi,

Anyone any experience with dcmtk running as a service?

I created a service called 'storescp' with type REG_SZ and data C:\apps\temp\IN\storescp.exe 104 -fe ".dcm" -ss in
When I send some dicom, I don 't get any error messages but neither do I see some images in C:\apps\temp\IN directory...

Anyone an idea?

Regards,

Jan

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Did you already try to explicitly specify the output directory (using option --output-directory)?

uzleuven
Posts: 13
Joined: Fri, 2009-08-28, 15:04

#3 Post by uzleuven »

J?rg Riesmeier wrote:Did you already try to explicitly specify the output directory (using option --output-directory)?
This seems to works fine, at least if I send locally: when I send (using Filesender, MIRC) from localhost it works always fine...
When I send from another host it only works after restarting the service, when it fails I don't get any error messages (it acts like it worked, but no images are received).

Regards,

Jan
Last edited by uzleuven on Tue, 2011-02-01, 07:53, edited 1 time in total.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

Did you check whether the storescp runs with your command line options from the command prompt (i.e. not as a service).

meyer
DCMTK Tester
Posts: 3
Joined: Tue, 2004-11-09, 11:34
Location: Bremen, Germany

Re: storescp running as a service

#5 Post by meyer »

Let NSSM - the Non-Sucking Service Manager do this for you.

See https://nssm.cc/commands and my posting here.

Michael Onken
DCMTK Developer
Posts: 2055
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: storescp running as a service

#6 Post by Michael Onken »

Just want to second that, nssm is super simple and is great for making any executable a Windows service.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests