I have a script in /opt which is called regularly by Cron. The script needs to write and read a status flag between executions. In what directory should I store the flag? I'm thinking that /tmp might not be a good choice as the file containing the flag is not guaranteed to be preserved between script executions.
Saving result between script executions
scripting;directory structure