LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 06: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, 07:13 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
nc3b
Member
 
Registered: Aug 2005
Posts: 330

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:15 AM.

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
Open Source Consulting | Domain Registration