*BSD News Article 19198


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!aardvark.ucs.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!raven.alaska.edu!decwrl!olivea!uunet!emba-news.uvm.edu!trantor.emba.uvm.edu!wollman
Newsgroups: comp.os.386bsd.questions,demon.ip.support.unix
Subject: Re: tin says out of memory
Message-ID: <1993Aug5.203950.15884@emba.uvm.edu>
From: wollman@trantor.emba.uvm.edu (Garrett Wollman)
Date: Thu, 5 Aug 1993 20:39:50 GMT
Sender: news@emba.uvm.edu
References: <CAMv3L.4LA@kram.org> <CB8wzB.EFI@demon.co.uk> <23pfv1$gc@azrael.demon.co.uk> <CBAwso.8Gt@kram.org>
Organization: University of Vermont, EMBA Computer Facility
Lines: 38

In article <CBAwso.8Gt@kram.org>, Mark Turner <mark@kram.org> wrote:

>Thanks, this works fine. :) Is there a similar thingy in bash?

Sure.  Here's what TFOH (TF online help) has to say:

wollman@sadye(96)$ help ulimit
ulimit: ulimit [-SHacdmstfpn [limit]]
    Ulimit provides control over the resources available to processes
    started by the shell, on systems that allow such control.  If an
    option is given, it is interpreted as follows:
    
        -S      use the `soft' resource limit
        -H      use the `hard' resource limit
        -a      all current limits are reported
        -c      the maximum size of core files created
        -d      the maximum size of a process's data segment
        -m      the maximum resident set size
        -s      the maximum stack size
        -t      the maximum amount of cpu time in seconds
        -f      the maximum size of files created by the shell
        -p      the pipe buffer size
        -n      the maximum number of open file descriptors
    
    If LIMIT is given, it is the new value of the specified resource.
    Otherwise, the current value of the specified resource is printed.
    If no option is given, then -f is assumed.  Values are in 1k
    increments, except for -t, which is in seconds, and -p, which is in
    increments of 512 bytes.


-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant