EXEC Command problems

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
moxtrip
Posts: 3
Joined: Wed, 2018-08-08, 10:16

EXEC Command problems

#1 Post by moxtrip »

Hello, greetings everyone.

Can you help me out, I'm trying to run a local server using bash on VS Code, this is the command i'm trying with no luck:

||--------------------------------------|| command using bash
$ exec C:/dcmtk/bin/storescp -v -d -dhl -td 20 -ta 20 --fork -xf \"C:\dcmtk\etc\dcmtk\storescp.cfg\" Default -od \"D:\xampp\htdocs\compacs\v1\uploads\temp\\" -xcr \"php ./process_files.php \"#p\" \"#f\" \"#c\" \"#a\" \" 1005 2>&1 > moxtrip_log.log
||--------------------------------------||

I've tried a lof ot variants, but I just can't make it work, i get this error:
$dcmtk: storescp v3.6.3 2018-02-05 $

||---------------------------------------|| moxtrip_log.log
storescp: DICOM storage (C-STORE) SCP
error: Too many parameters
||---------------------------------------||

The funny thing is I'm running almost the same command from PHP to execute and it works just fine, but i want to learn and understand how DCMTK works.

Is there any problem on the command? (i bet there is).

Thank you!

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

Re: EXEC Command problems

#2 Post by Michael Onken »

Hi,

maybe you can try something simpler; my gut feeling would be that this is an escaping problem (maybe in DCMTK, maybe somewhere else).

Best,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest