Where does the command coreadm -e log


 
Thread Tools Search this Thread
Operating Systems Solaris Where does the command coreadm -e log
# 1  
Old 09-23-2011
Where does the command coreadm -e log

I ran the commad
Code:
coreadm -e log

. Does anybody know where this file went on a Solaris 10 system? I checked in the current working directory and I don't see a file called
Quote:
log
in the directory. I also checked /var/core and I didn't see a log there.
# 2  
Old 09-23-2011
It generates a syslog(3C) message when generation of a global core file is attempted.
No log files are written as you expect
Each process that terminates abnormally produces two core files: one in the current working directory and one in the /corefiles directory.
If you want to collect core dumps into some directory for instance your home directory try out the following
Code:
$coreadm -p $HOME/corefiles/%n.%f.%p $$

$$ is the process-id of the currently running shell.
This User Gave Thanks to h@foorsa.biz For This Post:
# 3  
Old 09-23-2011
I'm pretty new to Solaris, what command do I use to get the process id of the currently running shell?
# 4  
Old 09-23-2011
Code:
echo $$

$$ The process number of the current shell.
This User Gave Thanks to h@foorsa.biz For This Post:
# 5  
Old 09-23-2011
same as in all *nix systems... echo $$
# 6  
Old 09-23-2011
Where is the file created when I run the command:

Code:
 
coreadm -p $HOME/corefiles/%n.%f.%p $$

# 7  
Old 09-23-2011
In your home directory beneath the corefiles directory
Code:
$HOME

Is a variable holds the full to your home directory.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to log the sed command used to replace

In a shell script I am replacing the asterisks in a file: sed "s/\*/"0"/g" /home/download/$COMPANY_CODE/file_new > /home/download/$COMPANY_CODE/fileI need to log which positions were replaced & position(01:20) from the line it was replaced in. I am not sure how to do so. Also, instead of... (11 Replies)
Discussion started by: tomj5141
11 Replies

2. UNIX for Dummies Questions & Answers

Set Command to output a log of every command executed in the script

Hi Guys, I like to output every command executed in the script to a file. I have tried set -x which does the same. But it is not giving the logs of the child script which is being called from my script. Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Discussion started by: mac4rfree
2 Replies

3. HP-UX

Log name for some HP UX command

I want to perform following task in HP UX OS. touch test mv test test1 rm test1 If there is any log from where i can trace this activity (file creation and modification log, not the command history file like .sh_history)? (3 Replies)
Discussion started by: makauser
3 Replies

4. UNIX for Dummies Questions & Answers

Trying to figure out a log dump command

Ok so i'm relatively new at UNIX and I'm trying to figure out how to make a log dump command. My situation is a bit odd in that I'm always looking at customers boxes and as such I can't really do much to them. So everything I do in UNIX pretty much has to be a command I can type in by hand. I... (4 Replies)
Discussion started by: MrEddy
4 Replies

5. Filesystems, Disks and Memory

Issue with coreadm utility

Hi all, The core files are moved to a partition in my server using the coreadm utility. But the owner of the core files created is root. So other users are not having privillege to analys the same. -rw------- 1 root root 56512875 Apr 27 17:05 tpm007_upd_local.N820.114.16281.core... (1 Reply)
Discussion started by: meheretoknow
1 Replies

6. UNIX for Dummies Questions & Answers

command to LOG OUT ?

Hello sir, to restart or shutdown we have commands like :- Then what is the command to LOG OUT ???? I know that we can just go and click log out, but I want to know how to log out from terminal. Can u please tell me the command !!!! (4 Replies)
Discussion started by: nsharath
4 Replies

7. AIX

AIX command log ?

Hi, I need to remember command(not smitty command) I executed a month ago. Maybe there are some logs I should refer ? thanks Vilius (3 Replies)
Discussion started by: vilius
3 Replies

8. UNIX for Advanced & Expert Users

CVS command checkin log minus tag log

Hi What is the cvs command for getting the diff between the checkin log and tag log. i am trying cvs rdiff -s -r <branch Tag> -r <branch> <module> but it is not giving me the files that were not tagged. I think it is doing a diff for common files in head and tag. Please help ... (0 Replies)
Discussion started by: rakeshou
0 Replies

9. Solaris

coreadm diasble a process from core dumping

Hello All Is it possible to disable a specific process from core dumping ? In my environment I have 2 bespoke application processes which needs to be stopped from core dumping but any other process should be allowed to core dump. If I do : coreadm -d process it will stop all per processes... (3 Replies)
Discussion started by: baner_n
3 Replies

10. Shell Programming and Scripting

how to log top command

i have an HPUX box in the office, as my daily routine i always check the load on my servers. i use the "top" command to see that. i would like to create a log file out of it so i can make it run once a day and check the logs. the problem is that the "top" command is like the "tail -f" command where... (7 Replies)
Discussion started by: inquirer
7 Replies
Login or Register to Ask a Question