home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / ultrix / 9573 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!nntp.Stanford.EDU!fafner.stanford.edu!mosedale
  3. From: mosedale@fafner.stanford.edu (Dan Mosedale)
  4. Subject: Q- fix for 4.2A "Arg list too long." from /bin progs?
  5. Message-ID: <1993Jan28.224308.9344@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Stanford Yeast Genome Project
  8. Date: Thu, 28 Jan 93 22:43:08 GMT
  9. Lines: 24
  10.  
  11. If you use programs from /bin (e.g. ls, chmod, egrep, rm, etc) with a
  12. wildcard in a big directory, they barf with "Arg list too long."
  13.  
  14. For example:
  15.  
  16.     hostname 232 >  /bin/ls /big_directory/*
  17.     /bin/ls: Arg list too long.
  18.  
  19. I thought that perhaps this was simply a problem with the various
  20. programs, so I grabbed the GNU fileutils and compiled them.  Same
  21. problem, same error message.  However, I looked at the GNU sources and
  22. saw no such error message.  
  23.  
  24. Then, doing a strings on /bin/libc.a shows that here lives the error
  25. message.  So presumably, someone is getting an errno of E2BIG and
  26. doing a perror().
  27.  
  28. Does anyone know how to tweak the kernel and/or do a binary patch to
  29. libc.a to increase the allowed arglist size?
  30.  
  31. Thanks,
  32.  
  33. Dan Mosedale
  34. mosedale@genome.stanford.edu
  35.