Article View: alt.os.linux.slackware
Article #225Re: environment size and "Arg list too long"
From: Derek Shaw
Date: Tue, 22 Aug 2000 05:47
Date: Tue, 22 Aug 2000 05:47
58 lines
3273 bytes
3273 bytes
It would appear that co-incidence is the culprit here. It seems to be simply the case that /var/home/userdir/* generates too many files for something (either chattr or the environment) to deal with. I moved roughly half of the files to another directory, and the command works as before. There is still the possibility (even likelihood) that I broke something while restoring the functions of the server, but since I can easily "divide and conquer" in this case, I will do so, and remain alert to the problem occurring elsewhere or coming back to bite me later. Feel free to e-mail me if you have any other suggestions. BTW putting quotes around the absolute path argument simply resulted in the response chattr: No such file or directory while stating /var/home/userdir/* and that really does say "stating". Cheers! d. Derek Shaw wrote: > > I recently had an oops on a host, and after getting it working, a previously working > commnand (chattr), run from cron is now returning "Arg list too long". From poring thru past postings > with Deja-news, it seems most likely that it is something to do with the environment size. > > can anyone tell me where (if) the environment size is set? Or any other information about this? > BASH_VERSION=1.14.7(1) > > I have a kludge working where I use find to process each file, and then execute the chattr command, but I would > much rather use the format: > > chattr +i /var/home/userdir/* > > Another clue: if I run the command with a relative path it works fine: > eg: > cd / > chattr +i var/home/userdir/* > works, while > chattr +i /var/home/userdir/* > fails (returns "Arg list too long"). > > Any clues appreciated! > > feel free to respond by e-mail, too (remember to edit the address). > -- > This is a spam-resistant posting -- replace the he.is with derekshaw to send e-mail. > > Derek Shaw > Business Information Systems Victoria, BC. -- This is a spam-resistant posting -- replace the he.is with derekshaw to send e-mail. Derek Shaw Business Information Systems Victoria, BC.
Technical Details
Message-ID:
<39A213E1.7F7053E4@bigfoot.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.gvcl1.bc.home.com.POSTED!not-for-mailReferences:
<39A1C1E4.A1F33280@bigfoot.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1054c0,86ff5b0ae5b4242e X-Google-Attributes: gid1054c0,public X-Google-Thread: f906c,86ff5b0ae5b4242e X-Google-Attributes: gidf906c,public X-Google-ArrivalTime: 2000-08-21 22:47:18 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.gvcl1.bc.home.com.POSTED!not-for-mail Message-ID: <39A213E1.7F7053E4@bigfoot.com> From: Derek Shaw <he.is@bigfoot.com> Organization: Business Information Systems X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: alt.os.linux.slackware,gnu.bash Subject: Re: environment size and "Arg list too long" References: <39A1C1E4.A1F33280@bigfoot.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 58 Date: Tue, 22 Aug 2000 05:47:14 GMT NNTP-Posting-Host: 24.65.180.153 X-Complaints-To: abuse@home.net X-Trace: news1.gvcl1.bc.home.com 966923234 24.65.180.153 (Mon, 21 Aug 2000 22:47:14 PDT) NNTP-Posting-Date: Mon, 21 Aug 2000 22:47:14 PDT