06-17-2015
Thanks, I am using redhat linux and i know when the 'core' file was created. Is there any way to check to generic log file, then pls let me know the path.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to write a simple shell script to find a hanging pid and kill it.Any idea how to find a hanging pid?? (6 Replies)
Discussion started by: Ravi Kanth
6 Replies
2. UNIX for Advanced & Expert Users
I have a script which spawns multiple compilations.
Sometimes due to some errors i have to terminate that script.
Now comes the main part, how do I do that?
I can see the individual compilations via
ps -ef | grep compiler
and also kill them via
kill -9 pid
But the scirpt continues:
... (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
3. HP-UX
Hi,
I am working on HP-UX Release 11i.
I want to find the process id (PID) of the process running on a particular port.
lsof command fuser does not work on this system.
Please suggest some alternative.
Thanks (6 Replies)
Discussion started by: gmat
6 Replies
4. Shell Programming and Scripting
When I run ps -aef | grep aaa.exe it gives out put
user 5091 5518 0 10:13:25 pts/1 0:00 grep aaa.exe
user 4647 2479 0 09:26:31 ? 0:25 /kk/zzz/user/xxx/bin/aaa.exe
user1 1111 2222 0 08:26:31 ? 0:25 /kk/zzz/user1/xxx/bin/aaa.exe
I need Only PID value ie... (5 Replies)
Discussion started by: madhusmita
5 Replies
5. Shell Programming and Scripting
Hi,
If I use this command netstat | grep "1268" it shows me all IP addresses connected via port 1268, which is half of what I want.
I would like to be able to then map these against a PID on the system, and also thereby get the userid.
I have done a couple of days google bashing but... (3 Replies)
Discussion started by: gcraill
3 Replies
6. Shell Programming and Scripting
I want to kill a process run by a user of another group.
How do I do that..? (3 Replies)
Discussion started by: Haimanti
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I need to find the PID for a given port on the below system.
HP-UX mymachine B.11.31 U ia64 3223107173 unlimited-user license
How can I ? (4 Replies)
Discussion started by: mohtashims
4 Replies
8. HP-UX
Hi,
Is this the most appropriate way of finding the listen port number given the pid is "16659" ?
lsof -Pan -i tcp -i udp | grep 16659 | grep -i "listen"If so, how can I extract "7001" and assign it to a variable say myport=7001 from the below output which happens to be actual port number?
... (1 Reply)
Discussion started by: mohtashims
1 Replies
9. UNIX for Advanced & Expert Users
Hi,
I do not have root user credentials nor do I have the functional id of the process that uses port 80.
How can I find the pid of the process using the port number 80 ?
Operating System: Linux (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT FREEBSD
dtruss
DTRUSS(1) BSD General Commands Manual DTRUSS(1)
NAME
dtruss -- Trace system calls and userland stacks using DTrace
SYNOPSIS
dtruss [-acdefholLs] [-t syscall] [-n name -p pid command]
DESCRIPTION
The dtruss utility traces system calls and (optionally) userland stack traces for the specified programs.
The following options are available:
-p pid Trace the process with PID pid.
-n name
Trace the process with name name.
-t syscall
Trace the specified syscall only.
-a Print all details.
-c Print syscall counts.
-d Print relative times (in microseconds).
-e Print elapsed times (in microseconds).
-f Follow the children processes.
-l Force printing PID / TID.
-o Print time spent on CPU.
-s Print userland stack backtraces.
-L Don't print PID / TID.
-b bufsize
Specify the DTrace buffer size.
EXIT STATUS
The dtruss utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
dtrace(1)
HISTORY
The dtruss utility comes from the DTraceToolkit and was first imported into FreeBSD 9.0.
AUTHORS
Brendan Gregg
BSD
August 26, 2010 BSD