The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help needed in fuser command anju Shell Programming and Scripting 1 02-20-2008 02:08 AM
fuser ?? Look at the script !! varungupta UNIX for Advanced & Expert Users 0 08-31-2007 06:27 AM
make fuser send SIGTERM? adamides HP-UX 4 03-08-2007 10:57 AM
fuser brought down the box bandaru AIX 5 08-03-2005 08:39 AM
Help with fuser vibhor_agarwali UNIX for Dummies Questions & Answers 11 04-18-2005 02:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-23-2006
adrianlearnpro adrianlearnpro is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 2
fuser

Anyone ever use fuser,
i tried this command fuser /database.bk
but it only returns datbase.bk:

I read some of the forums online, one of them said when he used fuser, it broke down the box, i really don't want that happen.

I thought fuser is to see who is accessing that file, right?
any help is greatly appreciated. i have been searching online, and there is not that much help on fuser.

thanks.
  #2 (permalink)  
Old 03-23-2006
qfwfq qfwfq is offline
Registered User
  
 

Join Date: Feb 2005
Location: Canada
Posts: 133
The command fuser is used to list processes using a file. If nothing is return, then the file is not use by anyone at that time. If the file is used, you will get the PID of users using the file:

Code:
 
unixbox:/ # fuser YOURFILE
YOURFILE:     8316o    5452o    2351o    5426o    1393o   26348o   24673o
8886o   28688o   16107o   18838o   11514o   29396o    3810o   15796o
I don't see how fuser command could cause any problem to your system, maybe someone has an other opinion.
  #3 (permalink)  
Old 03-23-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
If running fuser causes a problem to occur, the system was broken before fuser was run. But I have never seen anything like that happen.
  #4 (permalink)  
Old 03-23-2006
adrianlearnpro adrianlearnpro is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 2
fuser

thanks for your reply. yes, you are right, no one was using that file.
yes, it is strange that fuser will bring down the system. don't think so either.

thanks.
  #5 (permalink)  
Old 03-23-2006
fidodido fidodido is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 49
Strange question, but.. how do you actually OPEN a file to test this behaivour ? I ask this because I tried with vi thefile but fuser shows another process different than the session where I actually executed vi thefile. Which leads me to think that probably vi open up a new version of the file to edit it.
  #6 (permalink)  
Old 03-23-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Try:
sleep 5000 < somefile
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0