How to get around the Linux “Too Many Arguments” limit
问题 I have to pass 256Kb of text as an argument to the "aws sqs" command but am running into a limit in the command-line at around 140Kb. This has been discussed in many places that it been solved in the Linux kernel as of 2.6.23 kernel. But cannot get it to work. I am using 3.14.48-33.39.amzn1.x86_64 Here's a simple example to test: #!/bin/bash SIZE=1000 while [ $SIZE -lt 300000 ] do echo "$SIZE" VAR="`head -c $SIZE < /dev/zero | tr '\0' 'a'`" ./foo "$VAR" let SIZE="( $SIZE * 20 ) / 19" done And