How do you wise monks communicate with a long-running process from another perl script which is executed by the user only? I first used signals (USR1 and USR2), but I would like to send a string so I can define multiple actions. I could write the command as a record in the database, but I do not want to poll the database too often. I could combine the database solution and sending a signal to inform to process there is a command waiting, but I prefer not using a database at all.
Currently the long-running process binds to a specific port and the other Perl script is using Net::Telnet to send commands to it.
Still, I feel there must be an easier way to sends command strings to a running process. Anyone suggestions?