CHeighlund
Programmer
I am working on a project designed to send files generated by one of our other programs (a php script/page) to certain email addresses. However, the email addresses which the message will be sent to are supposed to be determined, at least in part, by the contents of the previous file. (Ex: HR stuff goes to Head of HR, HoHR secretary, etc... IT stuff to IT manager, lead programmer, etc...) Oh, and this program will need to be run something like every five minutes in order to keep things 'up-to-date'.
I've got a program up that lets me do the emailing to a static list of addresses. And I (think I) can modify the php page to output a list of the email addresses it needs to go to in a file, based on the data inside. Will having the crontab listing for the perl program followed by a '< /path/to/email.file' be sufficient to get the email addresses I need into the perl program, or is there something else I need to do to make sure it reads them correctly?
I've got a program up that lets me do the emailing to a static list of addresses. And I (think I) can modify the php page to output a list of the email addresses it needs to go to in a file, based on the data inside. Will having the crontab listing for the perl program followed by a '< /path/to/email.file' be sufficient to get the email addresses I need into the perl program, or is there something else I need to do to make sure it reads them correctly?