Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: kevin@meso.com
To: axp-list@redhat.com
Subject: Re: Increasing stacksize in Cron
Date: Thu, 08 Jul 99 10:14:25 -0400	[thread overview]
Message-ID: <9907081414.AA24038@nimbus.meso.com> (raw)

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 <lindahl@cs.virginia.edu> 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.


             reply	other threads:[~1999-07-08 14:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-08 14:14 kevin [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-07-07 22:51 Increasing stacksize in Cron kevin
1999-07-08  3:07 ` Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox