echoing date to file after waiting