[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] grohtml - "too many open files"
From: |
walter harms |
Subject: |
Re: [Groff] grohtml - "too many open files" |
Date: |
Fri, 01 Dec 2006 16:01:58 +0100 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20060911) |
Ralph Corderoy wrote:
> Hi Larry,
>
>> Groff was barfing with a "too many open files" error, which I worked around
>> by doing "ulimit -n 768" first. I ended up with over 640 HTML files. I'm not
>> sure why all every output file has to be open at once, though.
>
>
> $
>
> What status close() returns depends on your awk. And closing a pipe
> should wait for the command to finish so if you've a grep that produces
> 1E6 lines and you just want to read the first then pipe it into `sed 1q'
> before reading it into awk so the grep gets a SIGPIPE on writing to the
> finished sed, curtailing its largess.
>
> Cheers,
>
>
> Ralph.
To access head or tail of a ascii file the 'head' and 'tail' commands are what
you
are looking at (prevents reading the whole file just to get the result).
re,
wh