From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29759 invoked from network); 8 Jul 1999 14:17:55 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Jul 1999 14:17:55 -0000 Received: from nimbus.meso.com (nimbus.meso.com [38.248.19.45]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id KAA20938 for ; Thu, 8 Jul 1999 10:14:00 -0400 From: kevin@meso.com Received: from local by nimbus.meso.com; (5.65v3.2/1.1.8.2/01Mar96-0159PM) id AA24038; Thu, 8 Jul 1999 10:14:25 -0400 Message-Id: <9907081414.AA24038@nimbus.meso.com> To: axp-list@redhat.com Subject: Re: Increasing stacksize in Cron Date: Thu, 08 Jul 99 10:14:25 -0400 X-Mts: smtp Funny thing is, the hard limit for stacksize is 128MB. When I am running the script interactively, limit shows the stacksize to be that value. Yet, when I run from cron, the limit is 8MB, and using "limit stacksize" to use a greater value fails, unless root runs the cronjob, which is not desirable in my case. I'd try and use sudo, but limit and ulimit don't seem to be valid commands in the /etc/sudoers file. Is there a config file that I can change, or, as I suspect, is this hard cron limit set in the kernel? Thanks, Kevin --------- Greg Lindahl wrote: >Only root can raise a limit beyond the hard limit. Perhaps your 6.0 >box has different limits? Run "limit -Ha" to find out. > >There is an evil way to get init to raise your limits. Original message: > I'm running a C-shell script via cron that includes > a "limit stacksize 32M" line, to increase the stacksize > from the default 8MB. Yet, when the script is run, > I get a "limit: stacksize: Can't set limit" message. > Is there any way to do this via cron? This is a box running RH 5.1. > I have no problem doing this on my Intel 6.0 box.