Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user locked in file 1

Status
Not open for further replies.

vttech

Technical User
Jan 28, 2006
297
US
I have no knowledge of AIX but I am trying to use vi to access a file called waffle. I get the message that user cjames is logged into the file and that it can't be access. Is there a way to log the user out of the file? I have tried rebooting the server but it still states that the user is logged into the file. when I use "ps ux" I don't see that the process for waffle is active and when I use "finger cjames" it does not state that the user is logged into the file.. any ideas or thoughts?/

Newbie in search of knowledge
 
Maybe that user has a script that is holding the file open. I would run fuser on that file to see...fuser will give you a process id that is accessing the file. From there you can ps -ef that process and see what script or program is holding the file

man fuser for the details... I know fuser -k kills the proc (but you'll want to check before you do that!! ;-) )
 
That sounds more like a source control error message than a vi error. vi (sometimes unfortunately) doesn't care if more than one person edits a file at once. Whoever writes it last determines what's in it.

Does the output of "which vi" (without the quotes) say something other than /usr/bin/vi?

If not, try "alias" and look for a line with "vi" on the left of the equals sign.

If neither of these is the case, please post the exact error message you're receiving.

- Rod





IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top