Share your knowledge at the LQ Wiki.
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-20-2002, 09:09 AM   #1
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
ez way to find the process that creates a file?

From time to time I find a file devnull in my home directory which probably indicates I made some typo's in a script I made.

From the timestamp on this file it does not seem to be anything run by cron and it is an empty file.

Is there some easy way to find out what process/which script is creating it?

Maybe I need to run something in the background for a while that keeps checking for the existence of this file and then make a sound when it appears, but I was hoping for a better solution =]
Old 08-20-2002, 09:22 AM   #2
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
grep devnull /directory/where/i/can/find/your/scripts
Old 08-20-2002, 03:36 PM   #3
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
Quick and dirty?

Next time you see it, make it owned by root and read only. Will cause an error when the guilty prog/script tries to create it again.


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
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
Mounting windows xp file system, creates mnt point, however, cant read files in share cmd0a0 Linux - Networking 10 04-16-2005 12:28 AM
How to find which program/service/process touch the file? Raman_RB Linux - Security 2 11-01-2004 03:16 AM
a script for process lof file to find online user netman_af Linux - Networking 1 08-17-2004 09:18 AM
Boot process messages: Where to find? concoran Linux - General 2 11-06-2001 06:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:48 AM.

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