* Increasing stacksize in Cron
@ 1999-07-07 22:51 kevin
1999-07-08 3:07 ` Greg Lindahl
0 siblings, 1 reply; 3+ messages in thread
From: kevin @ 1999-07-07 22:51 UTC (permalink / raw)
To: axp-list
Hi,
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.
Thanks,
Kevin Tyle <kevin@meso.com>
MESO, Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Increasing stacksize in Cron
1999-07-07 22:51 Increasing stacksize in Cron kevin
@ 1999-07-08 3:07 ` Greg Lindahl
0 siblings, 0 replies; 3+ messages in thread
From: Greg Lindahl @ 1999-07-08 3:07 UTC (permalink / raw)
To: axp-list
> 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.
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.
-- g
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Increasing stacksize in Cron
@ 1999-07-08 14:14 kevin
0 siblings, 0 replies; 3+ messages in thread
From: kevin @ 1999-07-08 14:14 UTC (permalink / raw)
To: axp-list
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-07-08 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-07 22:51 Increasing stacksize in Cron kevin
1999-07-08 3:07 ` Greg Lindahl
-- strict thread matches above, loose matches on Subject: below --
1999-07-08 14:14 kevin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox