I have a bash script that should be executed on ubuntu startup after boot.
The problem is the script should be only executed once a day. So when the script recognizes that it already has been executed today it should stop itself. How can i do this?
|
I have a bash script that should be executed on ubuntu startup after boot. The problem is the script should be only executed once a day. So when the script recognizes that it already has been executed today it should stop itself. How can i do this? |
||||
|
|
|
As Ubuntu uses Anacron by default, you already have this behaviour by putting the script into |
|||||||||||||
|
|
If you have a desktop it's easy to do using the GUI: howtogeek article. If you have a headless server then Iain Lane's answer should be good enough but you could also edit |
|||||||||
|