24 hour while loop in bash