> But if it works it at least a workaround.
And it works:
$ procps
PID TTY TIME CMD
18124 pty1 00:00:00 procps
4112 pty1 00:00:01 bash
$ procps -p 4112 -o pid= -o comm=
4112 bash
Thank you.
--
Problem reports: http://cygwin.com/problems.html
FAQ: h
Hi,
> The version you are looking for is available from the procps package.
> The ps binary is also named "procps".
thank you, I will check this.
It is a bit un-comfortable to check the OS where my scripts are running
to use a different ps-binary.
But if it works it at least a workaround.
--
Hello,
I am writing some scripts for linux and cygwin. To find out, if
a given pid (from /var/run/ is really the pid of the
correct process I use the ps command on linux (and AIX, Solaris,
even HPUX with a trick) with the option -o pid=
Example:
# ps -ef | grep bash
root 1118 1112 0 11:55
3 matches
Mail list logo