I would like to give a user some feedback when he is trying to execute a remote script that is started by xinetd and runs as single instance.
Via an UDP or TCP socket, the user sends some text to the port where xinetd is listening. If the script is not already in use, it is executed, but if not I would like to give the user some feedback like "Sorry, this script is already in use. Try again later." How could this be done? Thanks for any help.