piping email into an external app from rebol
[1/5] from: juff::fax::co::uk at: 14-Sep-2003 17:51
(newbie alert)
I'm trying to loop around in Rebol, downloading all the mail in a pop-box
and piping each one through an existing C executable...
Just about figured out the mail bit but I don't have a clue how to pipe the
downloaded email into an external program
Of course I could have piped the entire output from Rebol into it from the
command line but I'm trying handle the loop from within the rebol code so I
don't have to exit and have the overhead of reconnecting to the
mailserver...
any ideas please ?
thanks
John Uff
[juff--fax--co--uk]
[2/5] from: greggirwin:mindspring at: 14-Sep-2003 11:42
Hi John,
JU> I'm trying to loop around in Rebol, downloading all the mail in a pop-box
JU> and piping each one through an existing C executable...
JU> Just about figured out the mail bit but I don't have a clue how to pipe the
JU> downloaded email into an external program
JU> Of course I could have piped the entire output from Rebol into it from the
JU> command line but I'm trying handle the loop from within the rebol code so I
JU> don't have to exit and have the overhead of reconnecting to the
JU> mailserver...
It depends on your C program I guess. If you redirect the output in
the shell, you can just use PRINT in REBOL and the output will go
there. Will that work for you? There were a few messages here recently
on piping that should contain some good hints as well.
-- Gregg
[3/5] from: juff:fax at: 14-Sep-2003 18:54
> It depends on your C program I guess. If you redirect the output in
> the shell, you can just use PRINT in REBOL and the output will go
> there. Will that work for you? There were a few messages here recently
> on piping that should contain some good hints as well.
Thanks Gregg
Ideally I need to start a new instance of the C app for each email - to make
it fit in with the existing system (major rewrite to have the C app open all
the time)
so in the loop I need to
download email:
- start a new C executable
- pipe the email into it
(and let the C exit)
get the next email...
probably all at the same time - I could do it in C but rebol just makes the
email side of it so much easier...
can't find anything in the docs about starting up other apps from rebol
[4/5] from: greggirwin:mindspring at: 14-Sep-2003 12:41
Hi John,
JU> can't find anything in the docs about starting up other apps from rebol
You need View/Pro (or /SDK or /Command) to use the CALL function, which is used
for launching other apps. I'm not sure if they're still considering
putting that feature into a free version at some point.
-- Gregg
[5/5] from: bry:itnisk at: 14-Sep-2003 21:02
when you say piping I suppose you're not
talking about windows right? Since it can be
done in windows, but otherwise need View/Pro
or higher.