|
|
||||||
|
#1
|
|
|
|
|
I have reviewed the man page, but it isn't clear to me how I can
change the default name of a core file that is generate when running kill -6 PID. I have tried 'chcore -n on' Any ideas? |
|
|
|
#2
|
|
|
|
|
On 26 Aug, 04:04, Ouray Viney <ovi> wrote:
> I have reviewed the man page, but it isn't clear to me how I can > change the default name of a core file that is generate when running > kill -6 PID. > > I have tried 'chcore -n on' > > Any ideas? Try logging out and then back in - worked for me on AIX 5.2 and AIX 6.1. |
|
#3
|
|
|
|
|
On Aug 26, 6:31 am, sjm <sjm_n> wrote:
> On 26 Aug, 04:04, Ouray Viney <ovi> wrote: > > > I have reviewed the man page, but it isn't clear to me how I can > > change the default name of a core file that is generate when running > > kill -6 PID. > > > I have tried 'chcore -n on' > > > Any ideas? > > Try logging out and then back in - worked for me on AIX 5.2 and AIX > 6.1. When you say it worked for you, what exactly worked for you? When I set the core file name format using 'chcore -n on', logged off from my ssh session, logged back in, ran kill -6 <PID>, same as before, core was written but with standard name format, just place old 'core', no pid or timestamp. I appreciate your input, but perhaps you can be a little more specific about what you did and how you verified that it was working. Take a real simple example, just run "sleep 20 &", then in the same session, run kill -6 <PID OF SLEEP>. Then perform an ls core* in the directory that you ran the command from. Thanks |
|
#4
|
|
|
|
|
On 26 Aug, 15:36, Ouray Viney <ovi> wrote:
[..] > pid or timestamp. > > I appreciate your input, but perhaps you can be a little more specific > about what you did and how you verified that it was working. > > Take a real simple example, just run "sleep 20 &", then in the same > session, run kill -6 <PID OF SLEEP>. Then perform an ls core* in the > directory that you ran the command from. > > Thanks # pwd / # mkdir corefiles # cd corefiles # sleep 100 & [1] 381012 # kill -6 381012 # [1] + IOT/Abort trap(coredump) sleep 100 & # ls -l total 16 -rw------- 1 root system 7188 26 Aug 17:39 core # chcore -n on # sleep 100 & [1] 381024 # kill -6 381024 # ls -l total 16 -rw------- 1 root system 7188 26 Aug 17:41 core [1] + IOT/Abort trap(coredump) sleep 100 & # exit <log in again> # cd corefiles # ls -l total 16 -rw------- 1 root system 7188 26 Aug 17:41 core # sleep 100 & [1] 381032 # kill -6 381032 # [1] + IOT/Abort trap(coredump) sleep 100 & # ls -l total 32 -rw------- 1 root system 7188 26 Aug 17:41 core -rw------- 1 root system 7188 26 Aug 17:42 core. 381032.26224212 # |
|
#5
|
|
|
|
|
On Aug 26, 12:43 pm, sjm <sjm_n> wrote:
[..] > [1] 381032 > # kill -6 381032 > # > [1] + IOT/Abort trap(coredump) sleep 100 & > # ls -l > total 32 > -rw------- 1 root system 7188 26 Aug 17:41core > -rw------- 1 root system 7188 26 Aug 17:42core. > 381032.26224212 > # Oustanding! Thank you very much for taking the time to try it all out. The only difference that I can see, is that you ran your commands as root. I am running as a non-root user. I will try the sames tests and post my results. Thank you again. |
|
#6
|
|
|
|
|
On Aug 26, 3:15 pm, Ouray Viney <ovi> wrote:
[..] >> > > Oustanding! Thank you very much for taking the time to try it all > out. The only difference that I can see, is that you ran your > commands as root. I am running as a non-root user. I will try the > sames tests and post my results. > > Thank you again. Indeed your test results are correct. I am getting the same results when I am running the tests as root. If I run these commands as a non-root user I still get the 'core' not core.pid.date. running lscore as my non-root user shows: :~ 04:24 PM> lscore compression: off path specification: off corefile location: not set naming specification: on I also tried setting the default to on for all users and specifically for my non-root user: sudo chcore -n on -d and sudo chcore -n on <non-root-user> Any ideas what I might be doing wrong here. I would like this to work for a non-root user. Much apprecaited |
|
#7
|
|
|
|
|
On Aug 27, 8:25 am, Ouray Viney <ovi> wrote:
[..] > sudo chcore -n on -d > > and > > sudo chcore -n on <non-root-user> > > Any ideas what I might be doing wrong here. I would like this to work > for a non-root user. > > Much apprecaited aren't core dumps a potential security hole ? |
|
#8
|
|
|
|
|
On 26 Aug, 21:25, Ouray Viney <ovi> wrote:
[..] > sudo chcore -n on -d > > and > > sudo chcore -n on <non-root-user> > > Any ideas what I might be doing wrong here. I would like this to work > for a non-root user. > > Much apprecaited # su - user $ sleep 100 & [1] 463006 $ kill -6 463006 $ [1] + IOT/Abort trap(coredump) sleep 100 & $ ls -latr total 32 -rwxr----- 1 user staff 254 27 Aug 15:47 .profile drwxr-xr-x 7 bin bin 256 27 Aug 15:47 .. -rw-r--r-- 1 user staff 7188 27 Aug 15:47 core. 463006.27204743 drwxr-xr-x 2 user staff 256 27 Aug 15:47 . -rw------- 1 user staff 42 27 Aug 15:47 .sh_history $ |
|
#9
|
|
|
|
|
On Aug 27, 10:48 am, sjm <sjm_n> wrote:
[..] > [1] + IOT/Abort trap(coredump) sleep 100 & > $ ls -latr > total 32 > -rwxr----- 1 user staff 254 27 Aug 15:47 .profile > drwxr-xr-x 7 bin bin 256 27 Aug15:47 .. > -rw-r--r-- 1 user staff 7188 27 Aug 15:47 core. > 463006.27204743 > drwxr-xr-x 2 user staff 256 27 Aug 15:47 . > -rw------- 1 user staff 42 27 Aug 15:47 .sh_history > $ Any ideas how to get this working for a non-root user? Thanks, |
|
#10
|
|
|
|
|
On Aug 26, 10:55 pm, Henry <snogfest_hosebe> wrote:
[..] >> >> >> > aren't core dumps a potential security hole ? Isn't the sky blue? |
|
|
| Similar Threads | |
| Prblm: core dump naming (coreadm -i core.%f.%p) does not change dumpname (still "core"). Dear subscribers I have a peculiar problem. On one of my customers servers we would like to configure the "init core file pattern" to avoid that core dumps overwrite each... |
|
| what SUSE version will work with Quad Core and Dual Core systems? I downloaded SUSE Linux Enterprise Desktop 10. Installed it on a Quad Core computer, and it fails to install. When I installed it on a Dual Core computer, it begins the... |
|
| Intel dual core - quad core - real computing world difference ? If purchasing a new system and you had the choice, would you go with the Intel quad core q6600 ... or stick to the Intel dual core e6850 processor? XP Pro OS and most used... |
|
| Async UI Calls Block on Dual-Core CPU, work fine on Single Core. Why? I am using the code from this MSDN article [..] Everything worked great on my single core CPU laptop. I then tried to run the .exe on my Dual core Pentium-D at work. The UI... |
|
| Core file format - how to change format for existing core file Hi. I've a problem with dba program and core file, which hase been generated by our production system. I run this program: /usr/bin/adb /u1/dlc91d/bin/_mprosrv core And I... |
|
|
All times are GMT. The time now is 09:24 AM. | Privacy Policy
|