Python Forum
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Value count
#1
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.
Reply
#2
Show us what you've tried so far.
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Row Count and coloumn count Yegor123 4 1,268 Oct-18-2022, 03:52 AM
Last Post: Yegor123

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020