[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/bin/cat: Argument list too long
From: |
Jeff Chua |
Subject: |
/bin/cat: Argument list too long |
Date: |
Fri, 22 Oct 2004 11:49:19 +0800 (SGT) |
I'm encountering the following problem and not sure whether the problem
lies in "cat or "bash" or "apache".
When the script is called from apache httpd cgi, it encountered ...
/bin/cat: Argument list too long
The script has very huge usage of enviroment variables (more than 10k
bytes). If I define fewer variables, it ran find under cgi.
If I ran under bash shell prompt, there's no problem even with longer
string of variables defined.
Somehow running under apache, there's less memory left for running shell
command.
The "cat" command is simply ...
cat <<EOF
some text less than 2kBytes
...
...
EOF
I've tried increasing memory size and stack size using ulimit before
starting apache, but still encountering the same problem.
Any help is very much appreciated.
Thanks,
Jeff
[ jchua@fedex.com ]
- /bin/cat: Argument list too long,
Jeff Chua <=