Subject: Trouble with ulimit in /bin/sh on NetBSD 1.3_BETA
To: None <port-sparc@NetBSD.ORG>
From: Brian Buhrow <buhrow@cats.ucsc.edu>
List: port-sparc
Date: 12/28/1997 08:03:56
	Hello.  I have two questions, one of which I think is a bug.  Before I
submit it however, I'm wondering if there's something obvious I'm missing.
	I'd like to use the ulimit command to unlimit memory  and datasize
limits for a news server I'm administering.  When I went to figure out
which magic numbers I use for "unlimited" in sh, I discovered that sh
doesn't appear to know how to read the system limits.  Is this a known
problem?  (It seems to work on my 1.2G/i386 systems, of which I have many.)
	Also, in general, if I want to unlimit a resource in sh, what value do
I use?
-thanks
-Brian

Script started on Sun Dec 28 08:04:55 1997
% uname -a
NetBSD news 1.3_BETA NetBSD 1.3_BETA (GENERIC_SCSI3) #11: Wed Dec  3 00:47:13 MET 1997     pk@flambard:/usr/src1/sys/arch/sparc/compile/GENERIC_SCSI3 sparc
% limit
cputime         unlimited
filesize        unlimited
datasize        65536 kbytes
stacksize       512 kbytes
coredumpsize    unlimited
memoryuse       248076 kbytes
memorylocked    82694 kbytes
maxproc         80 
openfiles       64 
% /bin/sh
$ ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         0
stack(kbytes)        0
coredump(blocks)     unlimited
memory(kbytes)       0
locked memory(kbytes) 0
process(processes)   0
nofiles(descriptors) 0
$ exit
% exit
% exit

Script done on Sun Dec 28 08:05:39 1997