I've got this working now ... I learnt that some of the X file managers use
fam, so I tried the Perl script without X running, and it works.
Does the file manager somehow get exclusive use of fam ? If so, is it
possible to modify this behaviour ?
"Neill Rosenthal" <neill@xxxxxxxxx> wrote in message
news:b0946o$3es$1@xxxxxxxxxxxxxxxxx
> I am running Redhat 7.3 with the fam-2.6.7-6 and fam-devel-2.6.7-6
packages
> that came standard.
> I have installed the SGI::FAM module from CPAN, which comes with a test
> script called "monitor".
> I start fam up in debug mode, then start monitor. The output is shown
below.
> The line near the end
> fam[2138]: told dnotify to monitor "/home/neill/perl/fam/fam.txt" = dev
3/5,
> ino 116401
> looks promising, but fam produces no output when I modify the test file.
> Any advice would be appreciated !
>
> fam debug output :
>
> [root@ip75 root]# fam -T 0 -d -L
> fam[2176]: log level is LOG_DEBUG
> fam[2176]: read /etc/fam.conf line 13: "insecure_compatibility" = "false"
> fam[2176]: read /etc/fam.conf line 20: "untrusted_user" = "nobody"
> fam[2176]: read /etc/fam.conf line 28: "local_only" = "false"
> fam[2176]: read /etc/fam.conf line 35: "xtab_verification" = "true"
> fam[2176]: Setting untrusted-user to "nobody" (UID 99)
> fam[2176]: listening for clients on descriptor 3
> fam[2176]: client fd 4 is local/untrusted.
> fam[2176]: new connection from client 4
> fam[2176]: client 4 said: client 4 is sockmeister, and wants a unix domain
> socket
> fam[2176]: client sockmeister said uid 0; creating /tmp/.famHP8JFX
> fam[2176]: listening for requests for uid 0 on descriptor 5
> (/tmp/.famHP8JFX)
> fam[2176]: client fd 6 is local/trusted (socket /tmp/.famHP8JFX, uid 0).
> fam[2176]: new connection from client 6
> fam[2176]: Shutting down connection
> fam[2176]: lost connection from sockmeister
> fam[2176]: client 6 said: client 6 is ./monitor, and doesn't want a unix
> domain socket
> fam[2176]: ./monitor said: request 1 monitor file
> "/home/neill/perl/fam/fam.txt"
> fam[2176]: mtab: new local "/dev/hda5" on "/"
> fam[2176]: mtab: new local "none" on "/proc"
> fam[2176]: mtab: new local "usbdevfs" on "/proc/bus/usb"
> fam[2176]: mtab: new local "/dev/hda3" on "/boot"
> fam[2176]: mtab: new local "none" on "/dev/pts"
> fam[2176]: mtab: new local "none" on "/dev/shm"
> fam[2176]: mtab done.
> fam[2176]: myself watching /etc/mtab
> fam[2176]: express() name: /etc/mtab
>
> fam[2176]: opened pipe
> fam[2176]: New DirWatch for /etc (305 36cc1)
>
> fam[2176]: New FileWatch for 305 38104
>
> fam[2176]: told dnotify to monitor "/etc/mtab" = dev 3/5, ino 229636
> fam[2176]: express() name: /home/neill/perl/fam/fam.txt
>
> fam[2176]: New DirWatch for /home/neill/perl/fam (305 1c2d7)
>
> fam[2176]: New FileWatch for 305 1c6b1
>
> fam[2176]: told dnotify to monitor "/home/neill/perl/fam/fam.txt" = dev
3/5,
> ino 116401
> fam[2176]: sent event to ./monitor: request 1
"/home/neill/perl/fam/fam.txt"
> Exists
> fam[2176]: sent event to ./monitor: request 1
"/home/neill/perl/fam/fam.txt"
> EndExist
>
>
>
>
>
|