|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#16
|
|||
|
|||
|
i finally got mysql to work.
Now can some one help me how to find the parent mysql process and it children. PHP Code:
|
|
#17
|
|||
|
|||
|
Here is an example of how to read the 'ps' command.
Code:
UID PID PPID C STIME TTY TIME CMD
root 0 0 0 Sep 18 ? 0:17 sched
root 1 0 0 Sep 18 ? 0:54 /etc/init -
root 2 0 0 Sep 18 ? 0:00 pageout
root 3 0 0 Sep 18 ? 6:15 fsflush
root 418 1 0 Sep 18 ? 0:00 /usr/lib/saf/sac -t 300
daemon 156 1 0 Sep 18 ? 0:00 /usr/lib/nfs/statd
PID is the process ID. PPID is the Parent process ID. So you see under PID, there is a number of "1" and it is running the /etc/init process. Well, if you look for "1" under PPID, you will see /usr/lib/saf/sac and /usr/lib/nfs/statd. Those are child processes from /etc/init. The "1" in PPID tells you what the parent process is. Yours is hard to read because of the php text box you put it in, but PID 6888 is parent and 6912 is its' child. |
|
#18
|
|||
|
|||
|
Quote:
Thanks that was a great help |
|
#19
|
|||
|
|||
|
how to kill a process ID while running a script
Quote:
hi.. can you h elp me with this one.. i am running a script that will kill the PID of a certain process if it sees something wrong in the system.. for example: if i encountered an error while one process is running then my script should kill the PID of the said process.. how will i be able to grep the PID and kill it.. thanks very much.. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > how can i find the PIDs in MySql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|