Author |
Message
|
pcelari |
Posted: Wed Mar 10, 2010 4:56 am Post subject: connect FileOutput to EmailOutput to attach file possible? |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Hi,
I use a FileOutput node to collect a day's record into a file. Now I need to send this file as an email attachment.
Has anyone tried this arrangement?
thanks for sharing.
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Mar 10, 2010 5:20 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
did you try, what was the result....?
whats the issue that you are facing here? _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
pcelari |
Posted: Wed Mar 10, 2010 5:46 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
I tried, but only individual records got sent as email, not the while file. so I got hundreds of email each containing one records - virtually flooding my email account.
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 10, 2010 5:56 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
FileOutput won't produce the full contents of the file written, even after the finish file terminal has fired.
That would eliminate most of the value of the finish file terminal, which is to allow you to not keep the whole dang file in memory or to use something to collect individual records in memory.
Easist solution is to write each record to two files and use FileInput for one of them. |
|
Back to top |
|
 |
pcelari |
Posted: Wed Mar 10, 2010 6:28 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Woow! thank you mqJeff for the insight !
yes, a copy of everyday's file is kept in the archive. I can use a FileInput to read and email the file and move it to a different archive location.
Again, thank you soooo much for sharing your insight !
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
|