movescu.exe: cannot redirect output to log file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
amunaaser
Posts: 40
Joined: Thu, 2020-03-26, 10:29

movescu.exe: cannot redirect output to log file

#1 Post by amunaaser »

Hi!
A question related to your suggestion about using dcmtk-3.6.7-win64-dynamic:

I am using dcmtk-3.6.7-win64-dynamic and something that I have noticed with this version: I can't write the display output to a log file.
movescu.exe -aet SUSMEMAP01 -aec VGRRTG -aem SUSMEMAP01 -k 0008,0052=STUDY -k 0020,000D=2.16.840.1.113669.632.10.99.1014.4511.23827.289452432 -k 0010,0020=196301302359 -ll trace dicom.bfr.vgregion.se 104 >C:\temp\bin\kopiera.txt

Do you know, how I should write the output to a log file in this version. I didn't have any problem doing this with earlier versions!

Best Regards
Nasser Hosseini

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: movescu.exe: cannot redirect output to log file

#2 Post by J. Riesmeier »

In more recent DCMTK versions, the stderr stream is no longer merged with stdout (on Windows systems). That means, if you want to redirect stderr to a file you could e.g. use "2> logfile.txt" or "2>&1 logfile.txt".
Alternatively, you could use an appropriate logger configuration.

amunaaser
Posts: 40
Joined: Thu, 2020-03-26, 10:29

Re: movescu.exe: cannot redirect output to log file

#3 Post by amunaaser »

Good morning!

Thanks a lot! It works now like a charm. :)

Have a nice day
Nasser Hosseini

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Majestic-12 [Bot] and 1 guest