How can I write a script to submit a perl script as a cron job but only have it execute once?
After it has executed once, I would like it to automatically insert itself again into cron.
I want to avoid the situation where I schedule a cron job to run once a day, but end up with multiple instances of the cron job because it requires more than 24 hours to execute.
Install a signal handler that looks for SIGINT, or whatever, and delete the file there. I don't program for a living so I can't give you expert advice there.