Skip to content

Argument list too long #792

@hieukien212

Description

@hieukien212

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions