HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ulimit system or environment variable
Operating System - HP-UX
1834481
Members
2916
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2008 06:12 PM
07-06-2008 06:12 PM
Hi,
We wanted to set and use the value of ulimit as environment variable. Someone mentioned that ulimit is a system variable and hence can't be used as an environment variable.
I couldn't get his logic. We set the ulimit value in the script. Howerver, i want to understand why can't we set the value of ulimit as an environment variable in some file and source it in other script wherever needed ?
Thanks,
Shiv
We wanted to set and use the value of ulimit as environment variable. Someone mentioned that ulimit is a system variable and hence can't be used as an environment variable.
I couldn't get his logic. We set the ulimit value in the script. Howerver, i want to understand why can't we set the value of ulimit as an environment variable in some file and source it in other script wherever needed ?
Thanks,
Shiv
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2008 06:21 PM
07-06-2008 06:21 PM
Solution
Hi Shiv:
Well you're absolutely right. And I also don't understand your friend's comment. 'ulimit' is set in /etc/profile by default but can also be changed from the command line. The man page explains this. Here's a good link which I got off the ITRC search engine. Have you tried the ITRC search engine? I find it invaluable.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1229636
Well you're absolutely right. And I also don't understand your friend's comment. 'ulimit' is set in /etc/profile by default but can also be changed from the command line. The man page explains this. Here's a good link which I got off the ITRC search engine. Have you tried the ITRC search engine? I find it invaluable.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1229636
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2008 07:06 PM
07-06-2008 07:06 PM
Re: ulimit system or environment variable
read out this thread.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=54168
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=54168
a warrior never quits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2008 07:20 PM
07-06-2008 07:20 PM
Re: ulimit system or environment variable
>We wanted to set and use the value of ulimit as environment variable.
There are N different values for ulimit, which were you interested in? ulimit -a
>Someone mentioned that ulimit is a system variable and hence can't be used as an environment variable.
ulimit is not a variable but is a shell builtin. You can set a different environment variable to any of the N values returned by the command.
>We set the ulimit value in the script. I want to understand why can't we set the value of ulimit as an environment variable in some file and source it in other script wherever needed?
Yes, you could do that but you would need to use the ulimit builtin to change its value.
Why are you interested in ulimit? Typically it is set in your .profile and left alone. Unless you want to set it smaller to prevent runaway processes from going crazy.
There are N different values for ulimit, which were you interested in? ulimit -a
>Someone mentioned that ulimit is a system variable and hence can't be used as an environment variable.
ulimit is not a variable but is a shell builtin. You can set a different environment variable to any of the N values returned by the command.
>We set the ulimit value in the script. I want to understand why can't we set the value of ulimit as an environment variable in some file and source it in other script wherever needed?
Yes, you could do that but you would need to use the ulimit builtin to change its value.
Why are you interested in ulimit? Typically it is set in your .profile and left alone. Unless you want to set it smaller to prevent runaway processes from going crazy.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP