im.bit a udalosti od souboru ?
Jaroslav Benkovsky
benkovsk na pha.pvt.cz
Středa Červenec 30 14:41:21 CEST 1997
Petr Snajdr wrote:
> Druha vec je zda je mozne, aby byl nejaky proces informovan o zmene
> stavu konkretnoho souboru bez toho, ze by v cyklu tento stav cetl sam
> ( tj. jakakoli modifikace, smazani atd. ). na tuto myslenku me privedl
> fm (File manager na IRIXu), ktery zobrazuje vedle jmena aktualni
> velikost tj. pokud se soubor vecuje ( napr. download z ftp ) je videt
> jak ty cislice "bezi" taky. Prijde mi neunosne, aby to bylo reseno
> cyklickym ctenim stavu vsech souboru a kontrolou zda nebyl vytvoren novy
IRIX5.3$ man fam
Fam is a server that tracks changes to the file system and relays
these
changes to interested applications. Applications such as
WorkSpace(1G)
and Mailbox(1G) present an up-to-date view of the file system. In
the
absence of fam, these applications and others like them would be
forced
to poll the file system to detect changes. Fam is considerably
more
efficient.
Applications can request fam to monitor any files or directories in
the
file system. When fam detects changes to these files, it notifies
the
appropriate application. Fam(3X) provides a programmatic interface
to
fam.
Fam is informed of file system changes as they happen by the IRIX
kernel
through the imon(1M) pseudo device driver. Currently, fam servers
do not
communicate with each other and consequently, they poll to
determine the
state of NFS mounted file systems. The -t option specifies the
polling
interval in seconds. The default polling interval is 3 seconds.
Since
fam is invoked by inetd(1M), you must edit the /etc/inetd.conf file
to
change the polling interval.
.....
Edheldil
Další informace o konferenci Linux