Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-18-2006, 06:47 AM   #1
Registered: Aug 2005
Posts: 330

Rep: Reputation: 32
Question Strange file behavior

Hello. I need your help on a somewhat strange problem. I was trying to configure some servers the other day and of course, I ended gazing at maillog. I was always using tail maillog, to see only the last lines, but once, I decided maillog is too crowded. So, instead of deleting and touching it I decided moving it to maillog.old and creating a new file called maillog. I started one server who always poured tones of errors in maillog and did a tail maillog. Nothing. After a few minutes I figured out what was happening. The server poured everything in maillog.old. Why? Dows it have to do with inodes?
Old 08-18-2006, 07:13 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,773

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Yes, once a file is open by a process, and as long as it stays open by it, the process still use the same inode, so you may rename, move or even remove the file, it will still go to the same initial data store.
Old 08-23-2006, 01:27 PM   #3
Registered: Aug 2005
Posts: 330

Original Poster
Rep: Reputation: 32
Thank you. Srry I answered so late


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange directory behavior exodist Linux - Software 1 11-20-2005 04:37 PM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
Strange Script Behavior Stranger Linux - General 0 02-18-2004 03:30 AM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:25 PM.

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