From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan McCulloch Newsgroups: gmane.os.tru64.managers Subject: ulimit and Bourne shell Date: Thu, 20 Feb 2003 21:08:00 +1300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3.0.1.32.20030220210800.00bc86f0@pop.ihug.co.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045728595 25540 80.91.224.249 (20 Feb 2003 08:09:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 08:09:55 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18llmD-0006dn-00 for ; Thu, 20 Feb 2003 09:09:53 +0100 Original-Received: (qmail 14283 invoked by uid 5); 20 Feb 2003 08:09:43 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14250 invoked by uid 49493); 20 Feb 2003 08:09:42 -0000 Original-Received: from compobs@ihug.co.nz by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.4/5.0):. Processed in 0.465815 secs); 20 Feb 2003 08:09:42 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 20 Feb 2003 08:09:42 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAL00M60LC5SY@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Feb 2003 03:09:41 -0500 (EST) Original-Received: from grunt5.ihug.co.nz (grunt5.ihug.co.nz [203.109.254.45]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAL00M7XLC0U8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 20 Feb 2003 03:09:37 -0500 (EST) Original-Received: from p24-max5.dun.ihug.co.nz (afm) [203.173.237.24] by grunt5.ihug.co.nz with smtp (Exim 3.35 #1 (Debian)) id 18lllt-0004Gj-00; Thu, 20 Feb 2003 21:09:34 +1300 X-Sender: compobs@pop.ihug.co.nz (Unverified) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Windows Eudora Light Version 3.0.1 (32) Xref: main.gmane.org gmane.os.tru64.managers:3386 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3386 Dear Managers, I can find no way in the Bourne shell to set file-size to "unlimited" , for a certain user. ulimit -f unlimited reports that limit is above that alloweable - presumably because ulimit -S and ulimit -H confirm that the "soft" and "hard" limits are the same **However** if I change the user's shell to the C-shell and then use the C-shell's "unlimit", I CAN arrive at an unlimited file-size. (And this is confirmed by a file-copy experiment that used to fail) So it is NOT as though I have to muck around with sysconfig or whatever. Anybody know the explanation and Bourne-shell trick if there is one ? Does the C-shell really possess a hook to unlimiting resources that the Bourne shell doesn't ? (This issue has really caught us with our pants down, because the certain user is "oracle" - an Oracle database is started up by the Bourne shell - we had no idea there was a file-size limit because we mostly use C-shell's and for some reason this starts with filesize unlimited. (there's no "unlimit" in either /etc/csh.login or .cshrc or .login , thats another mystery). Then our database crashed because a roll-back dbf file exceeded the max file size, and now we can't restart the db. (That was another glitch - none of the Oracle dbf's were supposed to be set up to auto-extend, exactly because of this sort of scenario, but for some reason this one was)) Am currently setting up an Oracle C-shell environment so we can try restarting the db with unlimited filesize, but would really like to nail down whether or not this unlimiting is possible in the Bourne shell - I have always assumed that shells did not differ from each other on this sort of basic-functionality level . Thanks in advance , I will summarise. (I know ulimit issues have been raised before but I can't find exactly this one in the archives) Alan McCulloch Bioinformatics Software Engineer AgResearch NZ