LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 12-19-2007, 12:38 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 565

Rep: Reputation: 30
Which Process is writing to log file


Hi,

How can i know, which process is writing log on a particular file?

I have two similar process running, and unable to isolate, which one is writing the logs on a particular file.


Thanks in advance.
 
Old 12-19-2007, 12:53 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,623
Blog Entries: 10

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
lsof | grep path/to/log


Cheers,
Tink
 
Old 12-19-2007, 02:37 AM   #3
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 565

Original Poster
Rep: Reputation: 30
Thank you

Works Great
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to backup & truncate the log file while the process is running mvenkat_in Programming 13 10-30-2007 07:03 AM
Writing a server process flobadob Linux - General 3 10-28-2006 01:59 PM
Linux HA and writing scripts to kill process sceadu Programming 0 07-28-2005 03:27 AM
something writing messages to log every minute jkcunningham Linux - General 3 02-17-2005 06:50 AM
writing to child process stdin avikosan Programming 2 11-11-2003 07:06 PM


All times are GMT -5. The time now is 11:58 AM.

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