[lug] Polling a file under linux
John E. Koontz
koontz at boulder.nist.gov
Mon Apr 21 11:52:38 MDT 2003
At 11:57 AM 4/21/2003 -0500, you wrote:
>I have a C/C++ application that has to connect to an IP address every few
>minutes/seconds (exact timing is not yet clear). The IP address may
>change as the application is running, and the exact address is stored in
>/etc/myapp.config
>
>Since this file may change at any time I have to check it before each
>connection.
Why change a config file? Can't the changing agent just communicate the
information to the application directly, say through a port?
John E. Koontz
NIST 896.04 PCSG
303-497-5180
N39° 59' 42.1" W 105° 15' 49.7"
More information about the LUG
mailing list