tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* arg list too long
@ 1998-01-16  8:55 Mindaugas Jedinkus
  0 siblings, 0 replies; 5+ messages in thread
From: Mindaugas Jedinkus @ 1998-01-16  8:55 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,
I work with big number of files and must write loops because I got: 
"my_command: arg list too long"
How can I increase argument's size?

MINDAUGAS JEDINKUS
GMJE@bite.lt
+3709923470

^ permalink raw reply	[flat|nested] 5+ messages in thread

* arg list too long
@ 1998-07-01 20:19 SIMEONE, Allan J.
  0 siblings, 0 replies; 5+ messages in thread
From: SIMEONE, Allan J. @ 1998-07-01 20:19 UTC (permalink / raw)
  To: tru64-unix-managers

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] 5+ messages in thread

* Arg list too long.
@ 2001-02-02 17:58 Jim Fitzmaurice
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Fitzmaurice @ 2001-02-02 17:58 UTC (permalink / raw)
  To: tru64-unix-managers

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] 5+ 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; 5+ 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] 5+ messages in thread

* Summary : arg list too long
  2003-06-20 11:15 arg list too long Lew TK
@ 2003-06-20 16:19 ` Lew TK
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2003-06-20 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20 11:15 arg list too long Lew TK
2003-06-20 16:19 ` Summary : " Lew TK
  -- strict thread matches above, loose matches on Subject: below --
2001-02-02 17:58 Arg " Jim Fitzmaurice
1998-07-01 20:19 arg " SIMEONE, Allan J.
1998-01-16  8:55 Mindaugas Jedinkus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox