On the server, the process controls the files in the Unix file system.
If the client sends the file name for monitoring, the server must send a report to the client whether the file has been modified or deleted.
For communication between the server and the client, we must use either message queues or sockets.
Each time the file is changed, the server must notify of this change.
For all changes in all files, the server must support a single log file so that the user can view it through the command line interface.
The server can use two streams: one for communication, the other for monitoring.
How can you do this efficiently?
source share