Operating System - HP-UX
1831096 Members
2516 Online
110019 Solutions
New Discussion

Re: Ulimit Problem / query ?

 
SOLVED
Go to solution
Charles Harris
Super Advisor

Ulimit Problem / query ?

Dear all,

Recently our root mail is reporting an error from an at job containing the ulimit command, executed as a non root user. The line in the at job specifies ulimit unlimited which is the equiv to ulimit -f unlimited.

I don't know ulimit's dependancy(s) and wondered if anyone could clarify what causes the error seen:-

sh[36]: ulimit: The specified value exceeds the user's allowable limit.

Any pointers, tips, RTFM's warmly received as ever!!


Cheers,

-ChaZ-

3 REPLIES 3
Thierry Poels_1
Honored Contributor
Solution

Re: Ulimit Problem / query ?

Hi,

Solve the problem by replacing ulimit $l in
/var/adm/cron/.proto file with these lines:

if [ $l -eq 4194304 ]
then
ulimit unlimited
else
ulimit $l
fi


instead of RTFM, RTFF would probably have helped : Read The Fantastic Forum ;-)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Vincent Farrugia
Honored Contributor

Re: Ulimit Problem / query ?

Hello,

If you type:

ulimit -a

you will see that there are a lot of parameters associated with ulimit. Maybe the error is associated with one other parameter rather than file size.

HTH,
Vince
Tape Drives RULE!!!
Charles Harris
Super Advisor

Re: Ulimit Problem / query ?

Thanks for the fix, it seems to have done the trick!! - I especially like the Read the forums Thierry! - Always a good start!!! - My search's generally return nil results, which is strange, but nice point anyway!

Thanks again!

-ChaZ-