tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "SIMEONE, Allan J." <Allan.SIMEONE () rp-rorer ! com>
To: tru64-unix-managers
Subject: arg list too long
Date: Wed, 01 Jul 1998 20:19:59 +0000	[thread overview]
Message-ID: <96078715811440.tru64-unix-managers.marc@archive.invalid> (raw)

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

             reply	other threads:[~1998-07-01 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-01 20:19 SIMEONE, Allan J. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-20 11:15 arg list too long Lew TK
2001-02-02 17:58 Arg " Jim Fitzmaurice
1998-01-16  8:55 arg " Mindaugas Jedinkus
read-only archive

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