Python Forum

Full Version: Value count
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a python script that needs to be run in bash shell every hour. I need to save the count of no of times script ran that day, and reset the counter to 0 for the next day. How can i create a counter variable inside my script that will be saved as run_id to count the run of the script. Please help to solve this.
Show us what you've tried so far.
This problem looks the same as Rehan11's. Do you attend the same course? If this is homework, it should go to the homework section and we'd like to see your pythonic attempts to solve the problem.