I need your small help, i have one script which i can not schedule on crontab. But I am using sleep command.
I am facing issue while using sleep command.
My script took 10 or 15 min to complete ( run time) and I use sleep(3600) which means it sleep for another one hour
But my requirement is that my script start at 9:00, 10:00... and so on . Due to my script execution time which i am taking right now 10 min ( it vary), and after that sleep(3600) command ,my script next run start at 10:10 instead of 10:00
Can anyone help me how i can correct it this so that script run at exactly every hour.