Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • What is the result of getconf ARG_MAX for you? Commented Jun 23, 2018 at 18:03
  • @Jesse_b 2097152 . And I'm on Linux, btw Commented Jun 23, 2018 at 18:06
  • Are you trying to manually reproduce xargs? Commented Jun 23, 2018 at 18:23
  • 1
    @JeffSchaller No, I wanted to generate enough files to play around with various methods of handling Argument list too long error. So far I've figured out ulimit -s gives stack space, ARG_MAX is subset to that. I see so far that getconf ARG_MAX gives basically 2M by default for argument size, 8M for stack space. So basically all I need to know is how to create enough filenames to go beyond 2M limit, so that when I do *.jpg in any command that involves exec() family of function would throw that error. Commented Jun 23, 2018 at 18:33
  • 1
    Looks useful: unix.stackexchange.com/a/110301/117549 Commented Jun 23, 2018 at 19:11