Article View: news.software.nntp
Article #10838Re: ME cant remalloc...
From: Andrew A. Vasilyev
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
36 lines
1812 bytes
1812 bytes
nils mccarthy (nils@primenet.com) wrote:
> This won't work. Resource limits are per-process (and inherited by
> their children), so the limit increases would only take effect
> for the csh process, which doesn't actually execute anything.
You are right! The previous author forgot to add "Start the show":
> > /bin/csh -f <<EOF
> > # Let us use more open files
> > limit descriptors 1024
> > # Stop malloc errors - unlimit my max datasize
> > unlimit datasize
${WHAT} ${RFLAG} ${FLAGS}
> > EOF
> > [ back to sh code here ]
> Just use:
> [ sh code here ]
> # Let us use more open files
> ulimit -n 1024
Not every shell can understand all ulimits you want to change.
E.g., many years ago (:-)) I failed to do this using FreeBSD
/bin/sh, so I ought to use "csh -c 'limit xxx; limit yyy; INNDSTART'"
in rc.news. And Rich Salz was very engry amazing why one use csh
in shell script :))
________
ANDY
P.S. Nowdays /bin/sh works fine in FreeBSD (except the call to external
/bin/test, I mean "if [ ] ; then ..." is not builtin, but real /bin/[).
Technical Details
Message-ID:
<51c1t8$fud@news.demos.su>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <51c1t8$fud@news.demos.su> Subject: Re: ME cant remalloc... Date: Fri, 13 Sep 1996 00:00:00 +0000 From: andy@snm.demos.su (Andrew A. Vasilyev) References: <51bfbj$23l@marge.eaglequest.com> <51bis4$ljl@diamond.xara.net> <51bkhe$8vs@nnrp1.news.primenet.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 180399022 Distribution: world Organization: Demos Online Service Newsgroups: news.software.nntp