- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ulimit and PATH.... totally unrelated questions
Categories
Company
Local Language
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
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО10-17-2001 12:48 PM
тАО10-17-2001 12:48 PM
ulimit and PATH.... totally unrelated questions
,
I keep getting an error message about ulimit.... user's resources are over limit (something like that), it usually has to do with a cron or at error. What does that mean?
Also, if I want to add a path like /var/bin to the $PATH, but make it permanent, What file to I modify. Everytime I reboot, I have to add that to the PATH. /var/bin hold some of my scripts....should I move them somewhere else to execute?
Thanks,
Jenifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 12:57 PM
тАО10-17-2001 12:57 PM
Re: ulimit and PATH.... totally unrelated questions
to set the PATH variable for future logings you can either modify the user's .profile, or either /etc/profile for all users (use with care!).
ulimit is a feature to limit specific resource for users. You can view its settings with "ulimit" (without parameters). See the man pages of your shell (man ksh, man sh_posix, ...) for more info.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 12:57 PM
тАО10-17-2001 12:57 PM
Re: ulimit and PATH.... totally unrelated questions
Enter the following into file /var/adm/cron/.proto --
# @(#) $Revision: 27.1 $
cd $d
if [ $l -eq 4194304 ]
then
ulimit unlimited
else
ulimit $l
fi
umask $m
$<
For PATH, you can set it in /etc/profile if you are using ksh or posix, and I csh I believe uses /etc/d.cshrc or something like that.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 12:57 PM
тАО10-17-2001 12:57 PM
Re: ulimit and PATH.... totally unrelated questions
Cron question: what specific error are you getting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 01:06 PM
тАО10-17-2001 01:06 PM
Re: ulimit and PATH.... totally unrelated questions
As for the other question, ulimit is a shell builtin that is used to control the resource limits. You can read all about it in the appropriate sh man page and if you are curious about what the current limits are you can run
ulimit -a
Also if you want to increase a ulimit systemwide you can add a ulimit statement to the /etc/profile.
Lou Zirko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 06:47 PM
тАО10-17-2001 06:47 PM
Re: ulimit and PATH.... totally unrelated questions
The POSIX shell (/usr/bin/sh and /sbin/sh) and csh have the best controls. In csh, it is called limit, POSIX shell it is ulimit. Here is what you can control:
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 884736
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 60
In the above example,
ulimit -Sc 0
was placed in /etc/profile so all users will, by default, never get corefiles. But a knowledgeable user can change this value as needed. The -S option controls the ability to change the value by the user.
Bill Hassell, sysadmin