We've run into an issue where another process is picking up files whilst storescp is still retrieving resulting in corrupted files.
What is the best way to configure storescp to receive files as .dcm.tmp during receival and rename to .dcm once finished?
Thanks
storescp .tmp file during receive and rename to dcm
Moderator: Moderator Team
-
- Posts: 2
- Joined: Fri, 2023-09-15, 17:04
-
- OFFIS DICOM Team
- Posts: 1402
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: storescp .tmp file during receive and rename to dcm
You could use the
--exec-on-reception
command line option to rename the incoming files after the receive process is complete. As an example, the following command line (for Linux) will cause storescp to append a ".dcm" filename extension only once a file has been completely received and written:Code: Select all
storescp --exec-on-reception "/bin/mv #f #f.dcm" -v 104
-
- Posts: 2
- Joined: Fri, 2023-09-15, 17:04
Re: storescp .tmp file during receive and rename to dcm
Thanks for that. It's on windows and was hoping to avoid relying on external process for that part but should be able to work something out with that.
Who is online
Users browsing this forum: No registered users and 1 guest