LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-18-2006, 07:47 AM   #1
nc3b
Member
 
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, 08:13 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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, 02:27 PM   #3
nc3b
Member
 
Registered: Aug 2005
Posts: 330

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


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


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


All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
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