Hi,
I've created a bash script which is executed every 5 minutes through a cron. The script checks if a trigger variable has been set to execute certain commands. If it is the commands are executed otherwise it skips the commands. However, since this script is executed every 5 minutes the trigger variable is reset upon each time the script is executed. Can anyone recommend a method which I can use to keep the value of the trigger variable outside the script? I was thinking of using an environment variable but I can't seem to get that to work.
Your help is greatly appreciated.
Thanks