Hello,
I would like to consult with you :
i need to manage one centeral file which is dynamically updated. this file is controling a queue under unix system.
each time a user invoke a command "run", the file is been updated with the user name. if the user is in the top of the file then it will run any other second command (e.g: open a gui) and then he will be deleted from this list.
in case he is not in the top of the file then he will wait in a loop until the other users from the list will complete their sessions.
The problem of updating file (open(FILE,">>$file) and close(FILE)) that the file might be occupied for other user/s and their process will fail. I don't know how to use SIGNALs or to work with socket.
Can you please help and send me examples, how can i do it in the simple way ?
Thanks !!!!