Watching file change

Watching file change

Post by Alex Ram » Wed, 13 Jul 1994 12:40:20



Is there a system-efficient way to watch for the change of
status on a file? That is, without doing a stat() on the file
every so often.

The architecture is SunOS 4.1.3, and portability isn't really an
issue.

Thanks,

--

Louisiana Tech University, BSEE/Sr * These opinions are probably mine

 
 
 

Watching file change

Post by Barry Margol » Fri, 15 Jul 1994 01:49:01



>Is there a system-efficient way to watch for the change of
>status on a file? That is, without doing a stat() on the file
>every so often.

No.  The periodic stat() method is how "tail -f" does it.
--
Barry Margolin
System Manager, Thinking Machines Corp.



 
 
 

1. Watching changes on mmap()ed files...

Hi !

----

Assuming two processes (on a SYSV/POSIX/Solaris2.7/2.8 machine) have
mmap()ed the same file (or shared memory) - process A writes to file and
process B reads it at the same time.

It it possible for process B to "see" which _parts_ of the file have
been changed ?

----

Bye,
Roland

--
  __ .  . __


  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359

2. HELP:Exploiting Shadowed password file for PPP users on NIS

3. ABOUT FILE SIZE AND MONITOR/WATCH DIR

4. Recording Line-In Audio

5. Watching Log files

6. COMMERCIAL: Trans-Ameritech ANNOUNCE competitive upgrade!

7. watching for file creation completion [was Re: Synchronous signal delivery..]

8. firewall and cvsup/ftp w/ports colloection

9. Watching NFS mounted files...?

10. watch growing files with /bin/sh script ???

11. How to watch a process's memory image ( or a file)

12. watch files

13. Log file watch / monitor ...