while(1){ # your code here # more code... sleep 300; # <--- without this line, you'll keep your disks busy, for sure }