06-15-2011
Finding process which ended another process
Hello,
The scenario is as follows, I have a background process running initially for which i know the PID on machine1. I use ssh from machine 2 to execute a script in machine 1. For some reason the back ground process is terminated. I would like to know which process caused the termination of this background task. is there any ideas to monitor this ?
Thanks in advance
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Problem
I have an application which basically runs lots of UNIX programs remotely, using the Telnet protocol. For each program it remotely executes, it stores the process ID (PID) for that process.
At regular intervals, I would like my application to take the PID for every process still... (5 Replies)
Discussion started by: 1cuervo
5 Replies
2. UNIX for Dummies Questions & Answers
is there a way to find the process id of a process because i have same process invoked several times.
when i need to kill them, i get confused with the id.
Thanks,
sskb
:( (8 Replies)
Discussion started by: sskb
8 Replies
3. UNIX for Dummies Questions & Answers
Hi,
If in a shell script i write a command
ls > bla &
ls
The output is redirected to bla and the next ls starts as first one is going on in background.
I want to find the PID of the first command.
Thanks in advance (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
4. Linux
Hello,
Iam running a apache webserver in CentOS recenlty a hacker has attacked my server using RFI attack and did something in my server.. After that everyday at 8Pm my httpd is using about 5000 pid's actually in normal it takes only about 30 - 40 pid's. and also exim uses 2000 pid's totally my... (2 Replies)
Discussion started by: dheeraj4uuu
2 Replies
5. Shell Programming and Scripting
Hi
Any idea how to get the process id of the process using the ports
lsof -i :portnumber does not work in my machine. I am on sun Solaris SPARC.
Any suggestion is highly appreciated (1 Reply)
Discussion started by: kinny
1 Replies
6. UNIX for Advanced & Expert Users
hi all,
I am trying to find the process id of the subsequent process created via fork and exec calls in perl.
For eg:
envVarSetter dataCruncher.exe < input.txt > output.txt
When I fork and exec the above command,
it returns only the pid of envVarSetter and I don't know how to find the... (9 Replies)
Discussion started by: matrixmadhan
9 Replies
7. UNIX for Dummies Questions & Answers
Afternoon all, hopefully someone can give me a hand with this (the following may be explained very poorly :rolleyes: )
I know there's a process running on one of our Solaris 10 boxes that runs approximately every 5 minutes. Unfortunately I've no idea, who owns it, what it is called, or how it is... (2 Replies)
Discussion started by: dlam
2 Replies
8. Shell Programming and Scripting
Hi guys. Hopefully this question will make sense!
Continuing on my script to automatically copy some huge files across the network onto various servers as background jobs, I need to be able to check that each job has finished successfully.
The script below shows what I want - almost. The... (2 Replies)
Discussion started by: dlam
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
The scenario is as follows, I have a background process running initially for which i know the PID on machine1. I use ssh from machine 2 to execute a script in machine 1. For some reason the back ground process is terminated. I would like to know which process caused the ... (1 Reply)
Discussion started by: prasbala
1 Replies
10. Shell Programming and Scripting
Hi,
I am trying to find a file that have a different name than it should be processing, the file name is ( Fifa15 )
is there a command to use?
I got that file by
ps -ef | grep fifa15
but how do I know what is running ?
thanks a lot, I am learning unix so sorry if that is a... (2 Replies)
Discussion started by: latinooo
2 Replies
LEARN ABOUT MOJAVE
imptrace
IMPTRACE(1) BSD General Commands Manual IMPTRACE(1)
NAME
imptrace -- report importance donation events in real time
SYNOPSIS
imptrace [-i [-s]] [-p pid] [-d]
DESCRIPTION
The imptrace utility displays a trace of importance donation events. Importance donation is used by adaptive jobs on the system to manage
their priority on the system. See xpc_transaction_begin(3) and launchd.plist(5) for more information about the mechanism and its use.
The options are as follows:
-i Show internal kernel boosts
-s Show stacks for internal boosts.
-p pid Limit events to the process identified by pid.
-d Display raw Dtrace output; do not reformat timestamps and sort output.
The traced events are as follows:
BOOSTED The specified process has received a boost and transitioned out of the background.
UNBOOST The specified process has dropped its last remaining boost and transitioned back into the background.
Recv Boost The specified process has received a boost and accepted ownership of that boost in userspace, usually by dequeuing the boost-
ing message.
Drop Boost The specified process has dropped a boost.
____ Int Boost Internal boost events are only emitted when tracking of kernel internal boosts is activated with the -i option. Their use and
meaning is subject to change and dependent on the implementation details of importance donation.
EXAMPLES
The imptrace script will output one line for each event, for example a typical boosting exchange might look as follows:
0000:00:00.000000000 EVENT PROCESS BOOSTS NOTES
0023:15:13.844332886 BOOSTED 22:configd
0023:15:13.844372519 Recv Boost 22:configd 1 from 275:SystemUIServer
0023:15:13.844497860 UNBOOST 22:configd Boosted for 0 ms
0023:15:13.844509452 Drop Boost 22:configd 0
In this case, SystemUIServer (PID 275) has sent a message to configd (PID 22) which caused it to be boosted. configd then dropped the boost
causing it to be become unboosted and return to background state. Boosted and unboost events may appear before the triggering recv or drop
boost.
NOTES
imptrace is implemented using Dtrace. For information about the probes used, see comments in the imptrace source. When debugging an adap-
tive service, it may be helpful to combine these probes with other Dtrace providers; however, they should be considered unstable.
OS X
May 01, 2013 OS X