Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument list too long #792

Open
1 of 2 tasks
hieukien212 opened this issue Oct 18, 2024 · 2 comments
Open
1 of 2 tasks

Argument list too long #792

hieukien212 opened this issue Oct 18, 2024 · 2 comments

Comments

@hieukien212
Copy link

hieukien212 commented Oct 18, 2024

Summary

I was trying to run heudiconv in bash script with an input as below:

-d ${dataset-dir}/scans/resources/DICOM/files/*.dcm

The error was Argument list too long, which I know is the kernel limit problem.

There are about 40,000 dicom files in total, and I'm expecting to operate on datasets of 90,000 files each.

Is there a way to get around this? I have tried increasing size limit ($ulimit -s 65536) but it did not work. And I assume the commonly given solutions using find and for loop will not work with heudiconv.

Platform details:

Choose one:

  • Local environment
  • Container: apptainer version 1.3.4-1.el8
  • Heudiconv version: 1.2.0
@yarikoptic
Copy link
Member

did you try to just -d ${dataset-dir}/scans/resources/DICOM/files/ ?

@hieukien212
Copy link
Author

Yes, it will give an unrecognized argument error, because the directories don't end at dicom files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants