I am trying to find the process id of the subsequent process created via fork and exec calls in perl.
For eg:
When I fork and exec the above command,
it returns only the pid of envVarSetter and I don't know how to find the pid of dataCruncher.exe
Option of pgrep, grepping by process name don't seem to suit my case and it will only involve additional processing. Also, multiple different parameters are passed which when grepped will return different values, so that's not a nice option
In short, is there a way to find out the pid of subsequent process executed in one command?
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)
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)
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)
Hi Gurus,
How can i find background process is completed or not. I have mentioned my scenario below.
Actually Pr1 Process is running in back ground, i just want to know whether this process completed or not. I can come to know the process id by typing pid=$! but i want to trigger... (4 Replies)
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)
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)
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)
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... (6 Replies)
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 DEBIAN
tapset::kprocess
TAPSET::KPROCESS(3stap)TAPSET::KPROCESS(3stap)NAME
tapset::kprocess - systemtap kernel process probe points
DESCRIPTION
This family of probe points is used to probe the kernel's process activities. It contains the following probe points:
kprocess.create
Fires whenever a new process is successfully created, either as a result of one of the fork syscall variants, or a new kernel
thread.
Arguments:
task
a handle to the newly created process
new_pid
pid of the newly created process
kprocess.start
Fires immediately before a new process begins execution.
Arguments:
N/A
kprocess.exec
Fires whenever a process attempts to exec to a new program
Arguments:
filename
the path to the new executable
kprocess.exec_complete
Fires at the completion of an exec call
Arguments:
errno
the error number resulting from the exec
success
a boolean indicating whether the exec was successful
kprocess.exit
Fires when a process terminates. This will always be followed by a kprocess.release, though the latter may be delayed if the process
waits in a zombie state.
Arguments:
code
the exit code of the process
kprocess.release
Fires when a process is released from the kernel. This always follows a kprocess.exit, though it may be delayed somewhat if the
process waits in a zombie state.
Arguments:
task
a task handle to the process being released
pid
pid of the process being released
SEE ALSO stap(1), stapprobes(3stap)Intel, IBMTAPSET::KPROCESS(3stap)