I wanted to run a particlar script for every 20 minutes. I dont have crontab in my server. Hence i ran this script in a loop by providing the command sleep 1200
Now i wanted to know is there any performance issue if this job keeps on execute in the server.
when your code hits the 20 minute mark it executes correctly and it take about 5 seconds to complete successfully.
This means your code goes back to sleep 5 seconds later every time it runs.
Eventually the sleep interval will not wake up during the 60 seconds that == 20 minutes elapsed. And it will stay that way since it never hits the 5 second time slippage. You need to rethink your design. maybe sleep 19 minutes 55 seconds.