1 |
Hello, |
2 |
|
3 |
On Tue, 03 Jul 2018, Walter Dnes wrote: |
4 |
> Thanks; this could be interesting. Run "ps x", grep for specific |
5 |
>commands in the output, read the pid at the start of the line, and |
6 |
>autofreeze those processes.. |
7 |
|
8 |
Use 'pgrep [-u UID/USERNAME] pattern' or adjust ps output to only |
9 |
display what interests you, e.g.: |
10 |
|
11 |
$ ps -eo pid,cmd |
12 |
$ ps -eo pid,cmd | awk '$2 ~ /pattern/ { print $1; }' |
13 |
$ ps -eo pid,cmd | awk '$2 == "string" { print $1; }' |
14 |
|
15 |
etc. |
16 |
|
17 |
Or try 'pidof' (which needs the exact command-name and might return |
18 |
mismatches). |
19 |
|
20 |
HTH, |
21 |
-dnh |
22 |
|
23 |
-- |
24 |
printk (KERN_DEBUG "Somebody wants the port\n"); |
25 |
linux-2.6.6/drivers/parport/parport_pc.c |