Enabling core dump
Hi,
I'm trying to enable core dump in RHEL 4.0. When i use the 'ulimit -c unlimited' command from the command line it works. However when i put in in a script it doesn't work. I believe it's a shell command. How can i do this in a script. I tried putting it in a shell function and calling it but it doesn't work. I also tried modifying the hard and soft limits for core in /etc/security/limits.conf to no avail. Some insight would be great! |
This is just a shot in the dark, but in your script, just after the "ulimit -c unlimited" statement, put a "ulimit -c" statement and see whether the output is "unlimited". That won't solve your problem, but it will narrow it down a little.
|
Quote:
Code:
echo "ulimit -c unlimited" >> /etc/profile |
i'm not sure but to change core limit you have to be root
so check if your script runs with root privileges |
There's more than one limit to core dumps. Only root can change your absolute limit, but within that, you can vary whether you dump core. So even if you're not root, I repeat:
Code:
ulimit -c unlimited |
All times are GMT -5. The time now is 03:02 PM. |