Return to BSD News archive
Xref: sserve comp.unix.shell:10997 comp.unix.admin:13334 comp.unix.aix:26844 comp.unix.bsd:12589 comp.unix.misc:9058 comp.unix.programmer:11587 comp.unix.wizards:30701 alt.kids-talk:11406 misc.kids.computer:795 misc.kids:61181 Newsgroups: comp.unix.shell,comp.unix.admin,comp.unix.aix,comp.unix.bsd,comp.unix.misc,comp.unix.programmer,comp.unix.wizards,alt.kids-talk,misc.kids.computer,misc.kids,k12.chat.senior Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!news.clark.edu!netnews.nwnet.net!ns1.nodak.edu!plains.NoDak.edu!tinguely From: tinguely@plains.NoDak.edu (Mark Tinguely) Subject: Re: limit without csh ? Sender: usenet@ns1.nodak.edu (Usenet login) Message-ID: <CD3BnJ.DtC@ns1.nodak.edu> Date: Thu, 9 Sep 1993 14:16:31 GMT References: <1993Sep8.203920.10026@mnemosyne.cs.du.edu> <1993Sep08.225420.21144@rz.uni-jena.de> Nntp-Posting-Host: plains.nodak.edu Organization: North Dakota State University Lines: 18 In article <1993Sep08.225420.21144@rz.uni-jena.de> prm@rz.uni-jena.de (Ralf Muschall) writes: >The subject says it: Is it possible to get the >effect of the limit command (in csh) in bourne-family >shells (or independently of shells at all)? limits can be changed for a process (and are inherited by its children). The shell is a good place to make a limit change, because programs that need the changed limit are forked from the shell. It does not work to jump into csh, change the limit, exit the csh and expect the limits to have changed. you could run csh, change the limit, run your original shell and then run your program, but that is a waste. See setrlimit(2) for more details. Here we set a max limit to avoid a single process to filling swap, but we also provide a suid program to loosen that restriction. To save net bandwidth, I won't include it, but will mail it if you want an example. --mark.