email message in filepro

Robert T. Repko (R Squared Consultants) rtr at rsquared.com
Wed Dec 6 15:54:09 PST 2006


Believe it or not at 12/6/2006 05:20 PM, vl said:

>>That is what I thought I had to do, but I thought filepro might of 
>>had another way of doing it.  Got it working writing a small python 
>>script.  I have one other question though.  When I export a file in 
>>processing using "export dif merge=/pathtofile/file.dif" can I 
>>attach that file in an email.  Does anyone do this?
>>
>>Thanks,
>>    Greg
>>_______________________________________________
>>Filepro-list mailing list
>>Filepro-list at lists.celestial.com
>>http://mailman.celestial.com/mailman/listinfo/filepro-list
>Well, I have it sending the file out via email, but I want to export 
>the file and email the file in the same process.  Filepro does not 
>finish generating the file untill after processing completes.  There 
>is nothing in the file until after processing.  Is there a way 
>around this, other than making the user run two processes.
>Thanks,
>    Greg
>_______________________________________________
>Filepro-list mailing list
>Filepro-list at lists.celestial.com
>http://mailman.celestial.com/mailman/listinfo/filepro-list


Run it from a script, first you create the file using filepro then 
you email that file as the second command in the script.

example (the lines will wrap):
/u1/fp/dreport debtmaster -f overduecontact -a -u -y xc -v 
voverduecontact -p /u/financial/FILEPROREPORTS/overduecontact.doc

/usr/local/bin/lightmail/lightmail -f rtr at rsquared.com -t 
mail.rsquared.com -a /u/financial/FILEPROREPORTS/overduecontact.doc 
-s "Debtworks Over Due Contacts Report for `date '+%A %B %d, %Y'`" -r 
rtr@@rsquared.com -m /u1/message/overduecontact

There are some environment variables that need to be set in the 
beginning of the script.
***************************************************************************
* Robert T. Repko - R Squared Consultants   |   Voice: (610) 253-2849     *
* Serving the Computing World for 20+ years |     Fax: (610) 253-0725     *
* Windows/Unix Networking, Cisco, Sonicwall |   email: rtr at rsquared.com*
* NJDOE Provider ID#: 763                   | Address: 4 Juniper Ave.     *
* SPIN: 143010681                           |          Easton, PA 18045   *
***************************************************************************



More information about the Filepro-list mailing list