0

I have a command that only contains 4 arguments, one of which has a value of ~150,000 characters. When I run the command, I receive an error stating Argument list too long.

I searched for a solution to similar problems, and someone recommended xargs. I don't think this is is applicable to my problem, as I'm trying to pass a single argument that is 150k+ characters.

Here's a shortened version of what I'm trying to run:

appname -arg foo -arg2 bar -arg {150k characters}

I'm running Ubuntu 16.04.

  • Is there a way to pass the data via a filename instead of via the actual data? – Chai T. Rex Nov 21 '16 at 20:35
  • You mean something like this? appname -arg foo -arg2 bar -arg file.txt – user1661677 Nov 21 '16 at 20:37
  • Yes. If there is, there's a nice way to do it without an actual file. – Chai T. Rex Nov 21 '16 at 20:37
  • How does this circumvent my original problem of having too many characters in my command? – user1661677 Nov 21 '16 at 20:39
  • 3
    You could be up against a hard limit. askubuntu.com/questions/14081/… – bc2946088 Nov 21 '16 at 20:44

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.