View topic - Automatic update of directories

Page 1 of 1

Automatic update of directories

PostPosted: Wed Jul 16, 2003 5:49 pm
by Tiradentes
I have a net with some PC with system QNX4. As I make to bring up to date one definitive directory in all the machines at the same time? I would not like to use cron, therefore it is twirling the time all. Exists some function in C that asks for for system QNX4 to inform me when is modified some archive in one determined directory?

If to modify this archive: //1/usr/test/test.txt
All will be brought up to date:

PostPosted: Wed Jul 16, 2003 7:08 pm
by cdm
You can use stat() to gather information on files and directories and thier access times. However, you have to poll. There isn't an event/callback for file modification.

PostPosted: Wed Jul 16, 2003 7:51 pm
by xtang
Can't you just prefix the file ?Leave the real file on //1,
and prefix -A //1/usr/test/test.txt=/usr/test/test.txt on
node 2, 3, ...