How can I move a file when it's mtime is now?
Hi,
I have some .call files which all have a future mtime. I want to move these files to /var/spool/asterisk/outgoing when the current server time and the mtime match ... or when the mtime is a second older than the current server time.
Example call file:
-rw-r----- 1 asterisk asterisk 241 2011-02-17 10:43:52 test.call
So, when the server's date/time is 2011-02-17 10:43:52, I want to move this call file to /var/spool/asterisk/outgoing so that Asterisk can place the call. I know I can just move these files to the Asterisk outgoing directory to begin with and the calls won't go out (b/c Asterisk will only trigger the call when the mtime is older or equal to the server time) ... but I'd rather not put them in that directory to begin with. When you restart Asterisk with certain parameters, it deletes .call files in its outgoing dir ...
help?
|