How is the file being transfered?
One of the biggest problems in using cron for this sort of thing is in making sure that the file that you're reading from is complete -- this was discussed a few months ago in Combining Data Files
If you can, the easiest thing to do is to piggyback something onto the data transfer process. (we have daemons listening for similar processes at my current job, so we can react as soon as a packet is complete, but we have requirements to get them processed and available for download within 5 minutes of receipt).
Now, if you're using FTP or something similar, you don't actually need to hack the daemon directly -- you can have a process tail the log file, so it knows when something's come in.
In reply to Re: Handling asynchronous events with Perl
by jhourcle
in thread Handling asynchronous events with Perl
by njcodewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |