1847125 Members
5491 Online
110263 Solutions
New Discussion

Re: ulimit message

 
SOLVED
Go to solution
mike worrell
Regular Advisor

ulimit message

We have a job that runs using the "at" command.
Each time it runs it sends me an email from root saying sh[23]:ulimit: specified value exceeds the users allowable limit.
The script runs and does what it's suppose to and if you do an at -l it's back out there like it should be.
Why am I getting this message and how can I correct?
Thanx
Mike
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor
Solution

Re: ulimit message

Hi Mike:

Your '/var/adm/cron/.proto' file should read:

if [ $l -eq 4194304 ]
then
ulimit unlimited
else
ulimit $l # <--- Lowercase letter "L".
fi

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: ulimit message

Mike,

Either the script or a program that is being executred by the script is trying to raise it's ulimit values, and unless it's root, it's not going to be able to.

live free or die
harry
Live Free or Die
Patrick Wallek
Honored Contributor

Re: ulimit message

JRF hit the nail on the head. If you would like confirmation from the TKB you can reference TKB Doc. ID A5237772.
A. Clay Stephenson
Acclaimed Contributor

Re: ulimit message

Hi:

The easist method is to reduce the ulimit value but just a little in /var/adm/cron/.proto. Yours is probably set to 4194304; reduce it to 4194302.
If it ain't broke, I can fix that.
mike worrell
Regular Advisor

Re: ulimit message

Thanks James, my .proto file didn't look anything like the one you listed. Made the change and I'll see if I get the message on the next run.
Mike
mike worrell
Regular Advisor

Re: ulimit message

thanks James, that did it.
mike worrell
Regular Advisor

Re: ulimit message

thanks to all for your help
Mike