0
votes
0answers
12 views

How to call the proc_register() function/ execve()

Is there any way monitoring the calling of the function " proc_register"? so that each time a proc registery is called (ot there is a new process creation) i will get the notification/alert/other..?
1
vote
2answers
83 views

If I know the PID number of a process can I know its name?

If I have the PID number for a process (on a UNIX machine), how can I know the name of its associated process? What do I have to do?
0
votes
1answer
61 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changees the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
3
votes
1answer
527 views

Looking for way to log process terminations on OS X (Mac)

I'm looking for a way to log all process terminations on my Mac (OS X 10.6.8). (And see pid, timestamp, process name) I've implemented something similar for HP-UX, but it required a kernel-level ...
0
votes
3answers
3k views

PID history of a process

What I want to know is PIDs that were assigned to a process before its last 2-3 restart. Scenario is after this particular process crashes, a log file is generated and PID of the process is ...
5
votes
4answers
3k views

What's a proper way of checking if a PID is running?

I have a .pid file, and I need to check if the process is running. So far I found two options kill -0 `cat something.pid` which prints out an error if the pid isn't running. I know this can be ...
0
votes
1answer
356 views

PID of a command executed in bash

I need a linux / unix command that will execute another command and write the PID of the command it executes to a file... is there such a command? I am not looking for any scheme that puts processes ...
2
votes
3answers
2k views

How to kill these PHP process safely?

I have installed php5 in ubuntu and WordPress. It can run after installed. But after few days I've found there are lots of process and occupied a lot of memories. I try to use ps -aux | grep www-data ...
4
votes
5answers
12k views

How to get pid of just started process

I want to start process (eg. myCommand) and get its pid (to allow to kill it later). I tried ps and filter by name, but I can not distinguish process by names myCommand ps ux | awk ...
1
vote
3answers
1k views

Identify PID of a transient network connection on HP-UX 11.23

We've tried lsof and tcpdump to capture the PID of a process that is attempting to make connections. Any ideas?
6
votes
4answers
5k views

Are .pid files reliable for determining whether a process is running?

Many programs such as sshd create .pid files in /var/run/ that contain their process ID. Are these files reliable for determining whether a process is running? My guess is that these files are ...
0
votes
2answers
273 views

Given pid, find the long gone process

I know that a certain process is restarting my web server at a certain time (probably in a cron job? It doesn't happen every day, though) but I don't know which process, only it's id (from looking at ...
1
vote
2answers
656 views

Where is the apache pid file on Gentoo?

I need it to configure Monit, but the path in the sample config file is /usr/local/apache/logs/httpd.pid and it's not there. It's also not anywhere in /etc (at least not with that name).
3
votes
5answers
4k views

how to get process file name from PID in MacOS?

Is it possible to get a file name of a process using PID? ps displays a lot of useful information about a process, but not a hint about a process executable file location.