Re: FAM - File Alteration Monitor
http://oss.sgi.com/projects/fam/faq.html o Faq so projeto FAM, com varias explicacoes sobre o funcionamento dele. O principio básico é explicado em FAM comes in two parts: fam, the daemon that listens for requests and delivers notification, and libfam, a library that client applications can use to communicate with fam. A uma entrada no apt-cache show a respeito da interacao com o kernel If the kernel supports dnotify (kernels = 2.4.x) FAM is notified directly by the kernel. Otherwise it has to poll the files' status. FAM can also provide a RPC service for monitoring remote files (such as on a mounted NFS filesystem). Se nao for isso, seja mais explicito sobre o que vc deseja saber a respeito do funcionamento dele. Rafael de Albuquerque On Thu, 13 Jan 2005 16:35:50 -0200, Tiago Vignatti [EMAIL PROTECTED] wrote: Dae pessoal, Alguem sabe aonde posso achar um bom material (tutorial, howto, etc..) sobre o File Alteration Monitor (FAM). Na realidade só quero saber como faz pra ele monitorar uma modificação em um arquivo. abraços T VIGNATTI -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: FAM - File Alteration Monitor
http://oss.sgi.com/projects/fam/faq.html o Faq so projeto FAM, com varias explicacoes sobre o funcionamento dele. O principio básico é explicado em FAM comes in two parts: fam, the daemon that listens for requests and delivers notification, and libfam, a library that client applications can use to communicate with fam. A uma entrada no apt-cache show a respeito da interacao com o kernel If the kernel supports dnotify (kernels = 2.4.x) FAM is notified directly by the kernel. Otherwise it has to poll the files' status. FAM can also provide a RPC service for monitoring remote files (such as on a mounted NFS filesystem). Se nao for isso, seja mais explicito sobre o que vc deseja saber a respeito do funcionamento dele. Rafael de Albuquerque On Thu, 13 Jan 2005 16:35:50 -0200, Tiago Vignatti [EMAIL PROTECTED] wrote: Dae pessoal, Alguem sabe aonde posso achar um bom material (tutorial, howto, etc..) sobre o File Alteration Monitor (FAM). Na realidade só quero saber como faz pra ele monitorar uma modificação em um arquivo. abraços T VIGNATTI -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: FAM - File Alteration Monitor
Nao entendo quase nada de programacao em C . Espero que outro da lista possa ajudar, ou entao em alguma lista de C. : / Qnto a dificuldade, sempre eh assim na primeira vez, mas depois melhora : ) PS.: encaminhei a sua mensagem pra lista, para o caso de alguem poder te ajudar com C. On Thu, 13 Jan 2005 18:13:34 -0200, Tiago Vignatti [EMAIL PROTECTED] wrote: Dae Rafael! Obrigado por responder minha mensagem. Mas as dúvidas não param: 1. O único modo de eu fazer o monitoramento de modifaçoes em arquivos (usando o FAM) é criando meu proprio programa em C com as funçoes FAMChanged, FAMOpen, etc?? 2. Nesta mesma página que vc me enviou tem um exemplo, o 'monitor.c' que eu copiei e colei, e tentei compilar mas ele nao achou a biblioteca fam.h, como eu passo ela por parametros no gcc? http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/0650/bks/SGI_Developer/books/IIDsktp_IG/sgi_html/ch08.html#LE45453-PARENT 3. Eu só quero monitorar mudanças em um arquivo! Parece que tá sendo muito dificil fazer isso... é normal isso? abraços e muito obrigado T VIGNATTI On Thu, Jan 13, 2005 at 04:56:53PM -0200, Rafael de Albuquerque wrote: http://oss.sgi.com/projects/fam/faq.html o Faq so projeto FAM, com varias explicacoes sobre o funcionamento dele. O principio básico é explicado em FAM comes in two parts: fam, the daemon that listens for requests and delivers notification, and libfam, a library that client applications can use to communicate with fam. A uma entrada no apt-cache show a respeito da interacao com o kernel If the kernel supports dnotify (kernels = 2.4.x) FAM is notified directly by the kernel. Otherwise it has to poll the files' status. FAM can also provide a RPC service for monitoring remote files (such as on a mounted NFS filesystem). Se nao for isso, seja mais explicito sobre o que vc deseja saber a respeito do funcionamento dele. Rafael de Albuquerque On Thu, 13 Jan 2005 16:35:50 -0200, Tiago Vignatti [EMAIL PROTECTED] wrote: Dae pessoal, Alguem sabe aonde posso achar um bom material (tutorial, howto, etc..) sobre o File Alteration Monitor (FAM). Na realidade só quero saber como faz pra ele monitorar uma modificação em um arquivo. abraços T VIGNATTI -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]