Wie Prozesse identifizieren die auf den Parport zugreifen?

Stefan U. Hegner stefan at hegner-online.de
Sat Apr 18 23:13:31 CEST 2015


Hallo Georg,

Am 15.04.2015 um 20:05 schrieb Stefan U. Hegner:
> Am 12.04.2015 um 21:50 schrieb Georg Gottleuber:
> [... Nutzung von inotify-tools ...]
>> Dummerweise gibt inotify aber
>> keinen Prozess an, dh. man erfährt nur, dass die Datei jetzt
>> geändert/geöffnet wurde. Mit einem lsof direkt dahinter und der
>> Hoffnung den Prozess noch zu erwischen...
>>
>> $ inotifywait /dev/parport1 ; lsof /dev/parport1
> Das scheint vom Prinzip genau das zu tun, was ich will.
... es hat geklappt:

    #  inotifywait /dev/parport1 ; lsof /dev/parport1
    Setting up watches.
    Watches established.
    /dev/parport1 OPEN 
    lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
          Output information may be incomplete.
    lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
          Output information may be incomplete.
    COMMAND     PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    lcd4linux 10237   root    6u   CHR   99,1      0t0 9442 /dev/parport1
    lcd4linux 10239   root    6u   CHR   99,1      0t0 9442 /dev/parport1
    lcd4linux 10241   root    6u   CHR   99,1      0t0 9442 /dev/parport1
    colord-sa 22717 colord  199r   CHR   99,1      0t0 9442 /dev/parport1

In diesem Fall war der colord der Übeltäter.

Allerdings verstehe ich nicht, wieso der auf den Parport zugreifen will
(da ist kein Drucker ...). Und in der /etc/colord.conf ist dafür wohl
auch keine Option vorgesehen, sowas auszuknipsen.

Hat dazu wer eine Idee?

Danke.

Stefan.



-- 
Stefan U. Hegner
         <stefan at hegner-online.de>
              * * *
D-32584 Löhne --- good ole Germany
internet: http://www.hegner-web.de
              * * *
GPG-Key | 048D 7F64 0BEB 73B1 2725
F-Print | C05E 4F77 9674 EF11 55FE

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20150418/877bffa8/attachment.sig>


More information about the Linux mailing list