* SUMMARY: arg list too long
@ 1998-07-06 14:55 SIMEONE, Allan J.
0 siblings, 0 replies; 3+ messages in thread
From: SIMEONE, Allan J. @ 1998-07-06 14:55 UTC (permalink / raw)
To: tru64-unix-managers
Hello All,
Here is the summary to my "arg list too long" question. I got some
excellent feedback
from many people. Thank you for the replies.
Some people suggested to use xargs while other suggested just splitting
up the
variables that need to be defined in different processes.
I couldn't get xargs to work. What I did was call DEC about this.
Although they
couldn't tell me exactly what the limit was for defining variables, it
was mentioned
it was around 64K as the limit. Basically, DEC said, "it isn't going to
happen" for the
amount of variables I want to define. So, we did the workaround by
splitting up the
variables for each process created. DEC did suggest that I could
install a third party
ksh, but then it wouldn't be supported by DEC. Then it *may* work.
You can test the amount of variables you can set by typing in env |
wc.
If no errors come up, you can add more variables.
I was only able to get up to about 35K before I started running into
problems.
Allan
>----------
>From: SIMEONE, Allan J.
>Sent: Wednesday, July 01, 1998 4:19PM
>To: 'alpha-osf-managers@ornl.gov'
>Subject: arg list too long
>
>Hi,
>
>I've checked the archives and saw the question, but haven't really seen
>a fix, so
>I need to ask this again.
>
>I have a file that gets an error if there are more than 28 lines in it.
>Each line in this file
>calls another file that has 54 lines in it. The 54 lines do the
>following for example:
>
>env1=1
>export env1
>env2=2
>export env2
>then 50 more lines of the same...
>
>so divide the 54 lines in 2 and that would be 27 variables and then
>times that by 28 would
>be 756 variables set.
>
>The error I get is "arg list too long". Would the problem be too many
>variables being set
>or too many lines in the file that would exceed 28 lines in it?
>
>Is there a way around this problem. I tried splitting the file up that
>would work with 28 lines
>by making 2 files with 28 lines in it, but that didn't make a
>difference.
>
>Basically, I have tried 2 ways of doing this...
>
>cat $project/file | while read study #file has the >28 lines in it.
>do
>. /usr/local/env_$study #env_$study has the 54 lines in it.
>done
>
>and I have tried...
>
>for study in 'cat $project/file'
>do
>./usr/local/env_$study
>done
>
>thanks,
>Allan
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* SUMMARY: Arg list too long.
@ 2001-02-05 17:51 Jim Fitzmaurice
0 siblings, 0 replies; 3+ messages in thread
From: Jim Fitzmaurice @ 2001-02-05 17:51 UTC (permalink / raw)
To: tru64-unix-managers
Hi,
We haven't solved the problem yet but are reviewing our options so I
thought I'd post a summary and just include the options I've received. That
way if anybody else has the problem, they can choose the option that best
meet their needs.
1. The xargs command seems to be the most popular recommendation,
unfortunately it would involve a major rewrite so we probably wont be able
to use this. I got it from:
Steve Smith
Marty M. Saletta
Peter Stern
Ian Motimer
Chewy
(And one other person I accidentally deleted, sorry.)
2. Edit /usr/include/limits.h increase line "#define _POSIX_ARG_MAX 4096"
to a higher number and recompile the kernel. (I'm not sure what else this
may effect, use at your own risk.) I got this one from:
Joerg Bruehe
Stu Fuess
3. Modify the kernel variable exec_disable_arg_limit in the 'proc' section
of dxkerneltuner (at the end). Set this to 1. Of course I'm currently on a
4.0F machine and this variable doesn't appear until the 5.1 kernel. Since we
will be upgrading soon, this may be a viable option for us. I got this one
from:
Udo Grabowski
Stu Fuess
4) Try passing the arguments to the compiler via a file by using a specific
tag, or by passing it like ada `cat list_of_files_to_compile`. This one
from:
Patrick Norris
Dr. Blinn explained that the limit is imposed to comply with POSIX
standards.
Thanks to all who replied.
Jim Fitzmaurice
jpfitz@fnal.gov
UNIX is very user friendly, It's just very particular about who it makes
friends with.
----- Original Message -----
From: Jim Fitzmaurice <jpfitz@fnal.gov>
To: tru64 <tru64-unix-managers@ornl.gov>
Sent: Friday, February 02, 2001 11:58 AM
Subject: Arg list too long.
> Just a quick question:
>
> System AlphaServer 4100 running 4.0F PK4.
>
> Trying to do a compile a software engineer is getting the error:
>
> Arg list too long
>
> coming out of his make command. I believe this can be increased, (I know
it
> can on other OS's) but I don't know where to look on Tru64. I've been
> looking through the System Configuration and Tuning Guide, but it doesn't
> appear to be there. Does anybody know?
>
> Jim Fitzmaurice
> jpfitz@fnal.gov
>
> UNIX is very user friendly, It's just very particular about who it makes
> friends with.
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread* arg list too long
@ 2003-06-20 11:15 Lew TK
2003-06-20 16:19 ` Summary : " Lew TK
0 siblings, 1 reply; 3+ messages in thread
From: Lew TK @ 2003-06-20 11:15 UTC (permalink / raw)
hi :
We are running Tru64 5.1A and we encountered this error whenever we try
a particular directory :
Eg :
# ls -l *20030620*
/sbin/ls: arg list too long
Is there solution where the * will work ?
Thank for any reply.
Cheers
--
/ \
-------|/@-@\|-----------------------------------------------
W \ / W Lew Teck Kheng
\ <AAA> /
\__<AY YA>__/ System Engineer cum Support Engineer
_<AXX XXA>_ LogicaCMG (Malaysia) Sdn Bhd
/ <HXY YXH> \
/ <AXX XXA> \
/ / <UV VU> \ \ Phone: +603-7725-6890
M / <Y Y> \ M Fax: +603-7725-6942
| <A> |
M M E-mail: lewtk@logica.com
This message was sent using Ximian Evolution 1.2
-------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread* Summary : arg list too long
2003-06-20 11:15 arg " Lew TK
@ 2003-06-20 16:19 ` Lew TK
0 siblings, 0 replies; 3+ messages in thread
From: Lew TK @ 2003-06-20 16:19 UTC (permalink / raw)
hi all :
Many thank you for those who gave suggestions :
Look like using "ls" and "xargs" solved my problem since i am looking
for one-line solution.
ls -l |grep 20030620 -> this command worked
But the rule of thumb is to organized those files into sub-directories
as suggested by Tim Cutts and Joerg Bruehe.
I will keep the option of changing and kernel recompilation as last
resort.
Thanks again !
cheers
On Fri, 2003-06-20 at 19:15, Lew TK wrote:
> hi :
>
> We are running Tru64 5.1A and we encountered this error whenever we try
> a particular directory :
>
> Eg :
>
> # ls -l *20030620*
> /sbin/ls: arg list too long
>
> Is there solution where the * will work ?
>
> Thank for any reply.
>
> Cheers
--
/ \
-------|/@-@\|-----------------------------------------------
W \ / W Lew Teck Kheng
\ <AAA> /
\__<AY YA>__/ System Engineer cum Support Engineer
_<AXX XXA>_ LogicaCMG (Malaysia) Sdn Bhd
/ <HXY YXH> \
/ <AXX XXA> \
/ / <UV VU> \ \ Phone: +603-7725-6890
M / <Y Y> \ M Fax: +603-7725-6942
| <A> |
M M E-mail: lewtk@logica.com
This message was sent using Ximian Evolution 1.2
-------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-20 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-06 14:55 SUMMARY: arg list too long SIMEONE, Allan J.
-- strict thread matches above, loose matches on Subject: below --
2001-02-05 17:51 SUMMARY: Arg " Jim Fitzmaurice
2003-06-20 11:15 arg " Lew TK
2003-06-20 16:19 ` Summary : " Lew TK
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox