Change directory for core file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Change directory for core file
# 1  
Old 10-02-2015
Change directory for core file

Hi,

Some of the process in th environment are producing a core file.
These core files are produced by default in the directory from which they were launched.
I want to change the default directory to say /tmp of that environment.

I am using both Linux and Solaris, so will need the solution for both.

Thanks in advance.
# 2  
Old 10-02-2015
Hello Raj,

It completly depends on the services/application/tools you are using that where you want to set the default location of the logs(including core/dump logs).As you haven't mentioned which tool you are using so let's say for an example I am using JMS(Java method Server) an efficient tool for handling JAVA applications to call methods using web services or dmbasic methods. It is fairly used in content managment tools specially Documentum(A product of EMC2 very famous for content mgmt). So after installing JMS you will get the default STOP/START scripts to make service up and down in that case you have option there to mention the location of logs(any code deplyment or code/dumps too), so let's say I have given there location /tmp then it will put all logs there and if I am NOT setting anythig then it will put them in a default location $DM_HOME/bin. So check in your tool and try to expore it more about these things, share with us which tool you are using if it is not harming your company's policy. You should get many options to do so.

Hope this helps.

Thanks,
R. Singh
# 3  
Old 10-02-2015
On Solaris systems, check the section 1M coreadm man page (man 1M coreadm). On Linux systems, check the section 5 core (man 5 core) and proc (man 5 proc) man pages.

In either case, the default location for a core file is the current working directory of the process at the time that it is dumping core (which might or might not be the directory in which the process started running).
This User Gave Thanks to Don Cragun For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change Directory

Hi All, There is a code like below in my script ############################################### ###Create Directories and Sub-Directories ############################################### dpdir=DP_FROM_${from}_TO_${to} mkdir $dpdir cd $dpdir mkdir AWQM WFCONTROLLER PROVCO PRISM ... (1 Reply)
Discussion started by: pvmanikandan
1 Replies

2. Shell Programming and Scripting

Change to directory and search some file in that directory in single command

I am trying to do the following task : export ENV=aaa export ENV_PATH=$(cd /apps | ls | grep $ENV) However, it's not working. What's the way to change to directory and search some file in that directory in single command Please help. (2 Replies)
Discussion started by: saurau
2 Replies

3. UNIX for Dummies Questions & Answers

How to change database directory to another directory?

Hi, I Installed mysql on my CentOS 6.2 Server. But when I tried to change the location of /var/lib/mysql to another directory. I can't start the mysql. Below is what I've done yum install mysql mysql-server mysql-devel mkdir /path/to/new/ cp -R /var/lib/mysql /path/to/new chown -R... (1 Reply)
Discussion started by: ganitolngyundre
1 Replies

4. Shell Programming and Scripting

How can we change the permissions of a file in a directory

Hi All, I am trying to wite a Shell script which changes the permission of the files in a folder but stuck at a particular point,please help. The scenario is as follwoing: I am having a list of 10 files and a folder which has 100 files. I need to copare the list and the folder ,for... (4 Replies)
Discussion started by: Sriram.Vedula53
4 Replies

5. UNIX for Dummies Questions & Answers

Change Directory

I have a directory that is existing under my root dir of the FTP server. The DIR name is 'Software Patch'. I want to move in to that DIR to download some patches. But, when I issued a command 'cd SOftware Patch', the system said that it cannot find the dir 'Software'. I tried all possible ways like... (2 Replies)
Discussion started by: vskr72
2 Replies

6. UNIX for Dummies Questions & Answers

Change All File Names in a Directory

Hi, If I have a directory full of say 100 random files, and I would like to organize them, for example: FILE001, FILE002, FILE003, FILE004, etc. How would I do this from Terminal, instead of manually changing each file? I'm using Mac OS X, if that makes a difference. Thank you in advance... (8 Replies)
Discussion started by: andou
8 Replies

7. AIX

core file default directory

Is there a setting anywhere to set the default directory for core files rather than creating in /home ?, and I believe there is an option to have named core files e.g core.login.2905, again does anyone know the setting. (0 Replies)
Discussion started by: gefa
0 Replies

8. UNIX for Dummies Questions & Answers

Delete Core file in root directory

HP UX 11i Ok my server is about to run out of space, and i would like to know if there is something that i should be doing on a regular basis to maintain the machine like logs that i should clear or dmp file that i should delete... Thanks in Advance (2 Replies)
Discussion started by: bbutler3295
2 Replies

9. UNIX for Dummies Questions & Answers

How do I change security on a file or directory?

What command(s) do I use to change the security on a file? I need to change the owner as well as read write end execute options. (5 Replies)
Discussion started by: ekkehard
5 Replies
Login or Register to Ask a Question