I have a perl scipt that I need it to end every two hours on a Linux machine. I was going to do a separate script and add it on cron.d to accomplish this, but I wanted an easier way. It has to do a graceful exit because after doing a CTRL+C, it writes a log file and killing it won't write the file.
Exit perl script automatically every 2 hours
387 Views Asked by EnigmaRenegade At
3
A wrapper keeps things simple.
You might want to forward signals sent to the handler to the child.