LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-04-2012, 02:10 AM   #1
rhadmn
Member
 
Registered: Oct 2009
Location: Bangalore
Distribution: Redhat Linux, Solaris, CentOS
Posts: 32

Rep: Reputation: 1
fuser usage


Hi Friends,

I was wonedering how to use the command "fuser" in the solaris platform to check whether a FILE is in use or not.

Even though I ran through the man pages I dint get a specific option to check a FILE is in use or not.

In linux you can use the option "-v" to find the same.

Note:- Even though I open a file in editor "vim" and after that if I check that file is getting accessed by any processes with "fuser" I am not getting any output

Thanks & Regards,
RHADMN
 
Old 04-04-2012, 06:42 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,505

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by rhadmn View Post
I was wonedering how to use the command "fuser" in the solaris platform to check whether a FILE is in use or not.
fuser is returning the pids of processes using the given file. If no pid is returned, the file is not open by any process.
Quote:
Note:- Even though I open a file in editor "vim" and after that if I check that file is getting accessed by any processes with "fuser" I am not getting any output
This is expected. "vim" is not keeping the file open outside when reading or writing it.
 
1 members found this post helpful.
Old 04-11-2012, 06:17 AM   #3
rhadmn
Member
 
Registered: Oct 2009
Location: Bangalore
Distribution: Redhat Linux, Solaris, CentOS
Posts: 32

Original Poster
Rep: Reputation: 1
Thanks a lot for the clarification.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about fuser skoinga Linux - Server 2 10-29-2010 11:02 AM
lsof and fuser maheshp86 Linux - Hardware 1 07-19-2010 12:04 PM
fuser command imprise Linux - Newbie 3 06-06-2009 04:59 AM
Fuser command Gins Linux - General 3 08-09-2005 01:15 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM


All times are GMT -5. The time now is 07:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration