Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 61:58:20 |
Calls: | 424 |
Calls today: | 2 |
Files: | 1,025 |
Messages: | 91,149 |
Posted today: | 1 |
On Sun, 4 Aug 2024 13:01:25 +0200, Joerg Mertens wrote:
You can find the relevant commit message under
http://cvsweb.openbsd.org/src/bin/ps/ps.c ...
Why are they still using CVS? And not HTTPS?
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Sun, 4 Aug 2024 13:01:25 +0200, Joerg Mertens wrote:
You can find the relevant commit message under
http://cvsweb.openbsd.org/src/bin/ps/ps.c ...
Why are they still using CVS? And not HTTPS?
I know that both topics have been discussed on the OpenBSD `misc
mailing list (probably more than once) but this was some time ago
and I did not pay much attention. If you search the list archive
you should be able to find some answers.
http://cvsweb.openbsd.org/src/bin/ps/ps.c ...
Why are they still using CVS? And not HTTPS?
Another useful command to use with ps is pgrep(1) <https://man7.org/linux/man-pages/man1/pgrep.1.html>
On Sat, 27 Jul 2024 00:40:49 -0000 (UTC), I wrote:
Another useful command to use with ps is pgrep(1)
<https://man7.org/linux/man-pages/man1/pgrep.1.html>
If you are expecting more than one process to match your criteria, it
is easy enough to use the ???-d,??? option to comma-separate them. Then the output becomes acceptable to the ???-p??? option in ps, e.g.
ps -p$(pgrep -d, bash) -wwo pid,ppid,lstart,tty,etime,cmd
to report all the bash sessions I have running (quite a lot). The ???ww??? says not to truncate the output, which is handy for long command lines.
Or just use ps -C <command>:
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:[...]
On Sat, 27 Jul 2024 00:40:49 -0000 (UTC), I wrote:
[...]ps -p$(pgrep -d, bash) -wwo pid,ppid,lstart,tty,etime,cmd
to report all the bash sessions I have running (quite a lot). The ???ww??? >> says not to truncate the output, which is handy for long command lines.
Or just use ps -C <command>:
Does noone know about -C? I keep seeing things like 'ps -ef | grep <something> in scripts to see if <something is running, rather than
using 'ps -C'.
JerryRene