|
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.
|
|
I have ubuntu/hardy server, with kernel 2.6.24-23-server and netstat:
# netstat --version net-tools 1.60 netstat 1.42 (2001-04-15)
The problem is that we have a lot of ESTABLISHED connections that don't show PID nor Program name in netstat -ntap output...
Started by depesz on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If....
Obviously waiting connections could have had the process die underneath them .
Are you sure to run it as root or with sudo ?
For established connections, this should only happen for connections that are initiated from kernel space, like NFS or DRBD .
|
|
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.
|
Ask your Facebook Friends
|
Hi, assuming that I know the PID of a process and want to do a search in ps -A, how do I do it? I tried doing this:
echo "Enter PID to search: " read PID search=$(ps -A | grep -v PID | awk '{print $1}')
This returns me with a long list of PIDs. So how...
Started by Herves on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Furthermore, since you do not want false....
You want to use $PID instead to use the variable named PID instead of the literal "PID".
You're grepping the output of ps for all lines which do not contain the literal string "PID".
|
|
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.
|
|
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'd like to know if it's possible to find out the "command" that a PID is set to. When I say command, I mean what you see in the last column when you run the command "top" in a linux shell. I'd like to get this information from Python somehow when I have...
Started by Evan Fosmark on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Ps -p [PID] -o cmd
should do it
The proc filesystem exports this (and other....
However, nor is /proc/$PID/exeRead up on the ps command and parse its output.
To show that /proc/$PID/cmdline (or the ps(1) output) is not reliable.
|
|
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".
|