|
I have a process I spawn with a Cygwin shell script, and I am unable to kill it with the kill command. Even with the Cygwin kill with the -f option, I get this message:
kill: couldn't open pid 1234
I would like to try to kill it with PsKill , but I cannot...
Started by Jazz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Or, you canHave you tried running the cygwin kill instead of the bash builtin? If it is a Windows PID then type:
/bin/kill ....
Ps -W will show the Windows PID in addition to the Cygwin PID.
And give you a Windows pid.
|
|
How can I get pids of all child processes which were started from ruby script?
Started by tig on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Child_pids =....
pid= Process.pid # Get the child pids.
Just keep track of them in an array as you = IO.popen('uname') pipe = IO.popen('uname') # Grabbing the pid.
Process.fork responds with the PID of the child spawned.
|
|
I've a somewhat silly question, if i have a series of processes that are created ... these are not necessarily some sort of inheritance, the pid of the processes have to be numbers continuous or random pids ?
Started by Melkhiah66 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
On Windows, pid's are usually allocated in increasing numbers, but as processes exit the pid's can be recycled and you will see cases where....
Depends on your platform, but you shouldn't be dependent on any specific order to your pid's.
|
Ask your Facebook Friends
|
I realize "fast" is a bit subjective so I'll explain with some context. I'm working on a Python module called psutil for reading process information in a cross-platform way. One of the functions is a pid_exists(pid) function for determining if a PID is...
Started by Jay on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
What are you doing, that finding a PID is limiting your what happened but I did some new tests and....
There is an inherent race condition in the use of pid_exists function: by the time the calling to be a wrapper around EnumProcesses anyway.
|
|
On my ubuntu server I run the following command:
python -c 'import os; os.kill(5555, 0)'
This is done so that I can see if pid 5555 is running. From my understanding this should raise an OSError if the pid is not running. This is not raising an OSError...
Started by Bryan McLemore on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Os.kill doesn't care whether you have a thread pid, or a task pid, however ps doesn't normally show cases, but it's important to note that there is a max pid value on linux and unix based OS:
$> cat /proc/sys/kernel/....
|
|
Hello. 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.
Started by Eye of Hell on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at serverfault):
> % ps, in the shell to see what binary the shell is, use the shell's PID in $$
$ lsof -p $$ | grep txt command in the output)
ps -p <pid> -....
Try ps aux
Example: you're after the associate process command name for PID 45109 ...
|
|
I have a Linux process that is consuming 100% cpu, and "kill -9 pid" doesn't work.
This is somewhat similar to: http://serverfault.com/questions/43534/how-to-kill-processes-unresponsive-to-kill-9
But I'm sure that the pid is not changing, and this is ...
Started by DanJ on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Ask ps auxf what child processes the zombie-PID has both Linux and UNIX/BSD like operating....
If the process is in the uninterruptible sleep because of kernel OOPS - you'd better reboot .
Will show up in "ps" with a status of "Z" for "Zombie".
|
|
Is there a way to tie a network connection to a PID (process ID) without forking to lsof or netstat?
Currently lsof is being used to poll what connections belong which process ID. However lsof or netstat can be quite expensive on a busy host and would...
Started by jac_no_k on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
To do this:
# ps -fp 308 UID PID PPID C STIME TTY TIME CMD root 308 255 0 22:44:07 ? 0:00 /usr/lib.
|
|
Hi,
I'm looking for a way to find out the open FD limit under Ubuntu machines which doesn't have the /proc/PID/limits , namely EC2 machines .
I have been looking into /proc/PID/limits , and found the the entry FDSize with values like:
FDSize: 256 FDSize...
Started by Adam Matan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
>>> import resource >>>.
No, it does not show the limit - just the usage.
|
|
I am trying to use port 80 for my application server, but when I perform "netstat -aon" I get
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
When I look up the process in task manager, it shows PID 4 is SYSTEM, thats it, not extension... nothing, just "SYSTEM"....
Started by GiH on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I'm not going to try it on the PC I'm on right now either!
It would seem that something inside Windows itself is listening on :80 ... .
Last I checked, you can't end the "system" process, and if you do, I'm guessing it's going to have catastrophic effects .
|