Xref: utzoo comp.sources.bugs:2388 comp.unix.xenix:11451 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!rpi!sci.ccny.cuny.edu!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.sources.bugs,comp.unix.xenix Subject: Re: Pathalias Problem Message-ID: <2647649C.7478@marob.masa.com> Date: 9 May 90 00:30:20 GMT References: <6145@ucrmath.UCR.EDU> Reply-To: daveh@marob.masa.com (Dave Hammond) Distribution: usa Organization: ESCC, New York City Lines: 21 In article <6145@ucrmath.UCR.EDU> gumby@ucrmath.ucr.edu (john donahue) writes: >/usr/lib/uucp/pathalias -i /usr/spool/uucp/Maps/* > /tmp/paths >It complains that the "arg list too long" and terminates. >So, do I need a better version of "getopt ()" than the one supplied >by SCO? This message is generated by the shell (not getopt), when the number of characters in the argument vector to some program exceeds the limit imposed by execv() -- around 5000 characters, as I recall. Try changing to /usr/spool/uucp/Maps before running the command, as in: cd /usr/lib/uucp/Maps /usr/lib/uucp/pathalias -i * > /tmp/paths This will reduce the number of chars passed to getopt by 18 (the length of /usr/lib/uucp/Maps) for each file to be processed. -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh