Register
It is currently Mon Sep 22, 2014 12:11 am

Monitor opened files


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Fri Sep 30, 2011 12:27 pm   

Joined: Sat Sep 10, 2011 11:48 pm
Posts: 7
Hello all.
I have a NAS which is basically a linux machine.
I have media filles in it (movies, music etc...)
It would be nice if i could see which files are opened, and from which machine.
Any idea?
Looking forward for your replies.


Top
 Profile  
 PostPosted: Fri Sep 30, 2011 2:55 pm   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 548
Hi,

lsof
Quote:
lists [...] file information about files opened by processes


Top
 Profile  
 PostPosted: Sat Oct 01, 2011 2:43 am   

Joined: Sat Sep 10, 2011 11:48 pm
Posts: 7
Watael wrote:
Hi,

lsof
Quote:
lists [...] file information about files opened by processes

Hello and thanks for the replie.
Unfortunately the distribution that my NAS uses doesn't have the lsof command.
I'am trying to do it using the "fuser" command but can't figure out how it works
The result i get when i enter
Code:
fuser /my_dir

looks like
Code:
19564

if i remenber correctly.
I don't know what that means and also doesn't displays the file name.
I would apppreciate any help.


Top
 Profile  
 PostPosted: Sat Oct 01, 2011 12:47 pm   

Joined: Sat Sep 10, 2011 11:48 pm
Posts: 7
Found the answer which was much simpler than expected.
I used the "smbstatus" (samba status) command that gives me what i want.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP