View topic - Automatic update of directories

Automatic update of directories

anything that doesn't fit to other groups.

Automatic update of directories

Postby Tiradentes » Wed Jul 16, 2003 5:49 pm

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:
New Member
Posts: 1
Joined: Wed Jul 16, 2003 4:28 pm
Location: Brasil

Postby cdm » Wed Jul 16, 2003 7:08 pm

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.
QNX Master
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Postby xtang » Wed Jul 16, 2003 7:51 pm

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, ...
QNX Master
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

Return to General Programming

Who is online

Users browsing this forum: No registered users and 5 guests