Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query regarding perl parameters on Linux

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
US
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?
 
sounds like it.. but you really need to decide exactly what parts you need help on ;)

Sending emails to different people based on a file is easy.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
travs69 said:
Sending emails to different people based on a file is easy.
Indeed. I only need to look at my inbox every morning for proof of that. Sanford Wallace has a lot to answer for...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top