Hi all,
I have a process that wakes up, works for a little bit, then goes back to sleep for 5 minutes, wakes up, etc...
It outputs in a log file when its sleeping and when its working.
I'd like to have a script that will figure out the difference in minutes between when it went to sleep and the current time.
The problem I have is when its 12:00 and if it went to sleep at 11:57.
Are there commands and/or functions to handle differences in time? Thanks for any help...
I have a process that wakes up, works for a little bit, then goes back to sleep for 5 minutes, wakes up, etc...
It outputs in a log file when its sleeping and when its working.
I'd like to have a script that will figure out the difference in minutes between when it went to sleep and the current time.
The problem I have is when its 12:00 and if it went to sleep at 11:57.
Are there commands and/or functions to handle differences in time? Thanks for any help...