From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,30a1f3f762cad7f5 X-Google-Attributes: gidfee84,public From: Bob Vickers Subject: Re: limit interactive login sessions? Date: 1996/07/31 Message-ID: <4tn90h$cqb@sun.rhbnc.ac.uk>#1/1 X-Deja-AN: 171305762 references: to: mkannapa@pms167.pd9.ford.com content-type: text/plain; charset=us-ascii organization: Royal Holloway College, University of London x-url: news:Pine.OSF.3.91.960730144753.14885B-100000-100000@pms167.pd9.ford.com mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha) Mohan Kannapareddy wrote: > >Greetings > I am looking for a way to limit an interactive login session > for say 1000s of CPU time. Basically, I would like everyone > whose jobs take more than 1000s CPU time to run in batch mode. > The current batch environment is Crays NQE. > How do I limit "non-root" process interactive limit? > I am running the Digital UNIX version 4.0 > Thanks in Advance > cheers > Mohan You want to use the ulimit command in /etc/profile and the limit command in the C-shell startup file (probably /etc/csh.login). See the man pages for sh, ksh, bash, csh, tcsh ... On OSF 3.2 the Bourne shell only lets you set soft limits, not hard limits. I don't know whether this is still true in DUnix 4.0. Bob -- ============================================================================== Bob Vickers R.Vickers@dcs.rhbnc.ac.uk Department of Computer Science, Royal Holloway College, University of London WWW: http://www.dcs.rhbnc.ac.uk/~bobv/ Phone: +44 1784 443691