in reply to Re^2: Close a file and reopen a new one at midnight
in thread Close a file and reopen a new one at midnight
Monk 0day: Would you kindly explain your statements? I don't see that either has any relevance.
"1144" remains a representation of an hour and minute that are not even close to midnight but it's being used as the code for the question "Is it almost midnite, and time to close the old log file and open a new one?"
and NJBTW, any update of $ymd " after sleep 1 at 11:44AM is not going to be any different than the old one, so while there will be a new file created, it will have the same name as (and overwrite) the previous one. The test MUST occur much closer to midnight and with an appropriate sleep to ensure the calendar turns to another day.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Close a file and reopen a new one at midnight
by MidLifeXis (Monsignor) on Jan 14, 2013 at 18:30 UTC |