Author Topic: [ SOLVED ] Is lsof working for me  (Read 651 times)

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2439
  • Any Bugs in site?
[ SOLVED ] Is lsof working for me
« on: November 11, 2012, 02:45:42 AM »
I am trying to find out if Flash i running an open file when playing a video clip.

Quote
[gert@localhost ~]$ lsof |grep Flash
[gert@localhost ~]$

Not looking so good, as I am running the video.

Quote
[root@localhost gert]# lsof | grep Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/gert/.gvfs
      Output information may be incomplete.
[root@localhost gert]#

How important is the WARNING information in above   ???
« Last Edit: November 11, 2012, 04:41:40 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3793
Re: Is lsof working for me
« Reply #1 on: November 11, 2012, 08:50:46 AM »
Quote
[galen@localhost ~]$ lsof | grep -i flash
plugin-co  5927       galen  mem       REG                8,7 19223824   401591 /usr/lib/mozilla/plugins/libflashplayer.so
Chrome_Ch  5927  5928 galen  mem       REG                8,7 19223824   401591 /usr/lib/mozilla/plugins/libflashplayer.so
plugin-co  5927  5932 galen  mem       REG                8,7 19223824   401591 /usr/lib/mozilla/plugins/libflashplayer.so
plugin-co  5927  5933 galen  mem       REG                8,7 19223824   401591 /usr/lib/mozilla/plugins/libflashplayer.so
plugin-co  5927  5934 galen  mem       REG                8,7 19223824   401591 /usr/lib/mozilla/plugins/libflashplayer.so

The "-i" allows grep to ignore whether text is upper or lowercased. I'm not sure what the error message is about, but I suspect it is not related to grep or flash.

Galen

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2439
  • Any Bugs in site?
Re: Is lsof working for me
« Reply #2 on: November 11, 2012, 04:40:22 PM »
gseaman
Thanks, I had forgotten about grep -i , ought to have been my first try. I can confirm that lsof seem to work fine.

Quote
[gert@localhost ~]$ lsof | grep -i Flash
opera:lib  4004       gert  mem       REG       8,24 17410532   204543 /usr/lib/mozilla/plugins/libflashplayer.so
operaplug  4004  4005 gert  mem       REG       8,24 17410532   204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004  4009 gert  mem       REG       8,24 17410532   204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004  4010 gert  mem       REG       8,24 17410532   204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004 14254 gert  mem       REG       8,24 17410532   204543 /usr/lib/mozilla/plugins/libflashplayer.so
................
.........................
[gert@localhost ~]$ su

Quote
[root@localhost gert]# lsof | grep -i Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/gert/.gvfs
      Output information may be incomplete.
opera:lib  4004             gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
operaplug  4004  4005       gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004  4009       gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004  4010       gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004 14254       gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
opera:lib  4004 14255       gert  mem       REG       8,24 17410532     204543 /usr/lib/mozilla/plugins/libflashplayer.so
...............
................
[root@localhost gert]#

I do have something "flash" on my system.

This morning with my internet speed doing well I did a quick search:
Googling: "warning can't stat() fuse.gvfs-fuse-daemon file system"

The warning shows up apparently because of this Gnome item, and root does not have access to the item, this was the odd bit to me.  The recommendation on Fedora forum was to ignore it.

I will mark it as solved.

32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: [ SOLVED ] Is lsof working for me
« Reply #3 on: November 12, 2012, 08:40:49 AM »
Yes...you can ignore it.

It is odd, indeed, but the short explanation is that gvfs is a virtual network file system used by gtl gtk (i.e., Gnome) apps to allow transparent network file access (I think by mounting and un-mounting on the fly within this directory).  It is a user-space filesystem, so it runs with the permissions (file and process) of the initiating user, not root.

I agree that you would think root would still have un-restricted access to it...but I guess it comes down to the network permissions (which, being outside the purview of the local system, can exclude root).

...
That's my idea of short?
 :P
« Last Edit: November 12, 2012, 01:20:00 PM by pags »

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2439
  • Any Bugs in site?
Re: [ SOLVED ] Is lsof working for me
« Reply #4 on: November 12, 2012, 01:09:07 PM »
pags
Thanks,
Sounds good enough to me now at least I have an idea of what is behind the WARNING   ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen