[REBOL] Re: Reading from stdi - what am I doing wrong?!
From: chris:starforge at: 13-Jul-2001 20:37
On 13-Jul-01, Ryan Cole wrote:
> It is not working on my server, but try this anyways:
> std-in: ""
> until [
> read-io system/ports/input std-in system/options/cgi/content-length
> (to-integer system/options/cgi/content-length) <= length? std-in
> ]
That sort of thing will only work with cgi data - I need to be able to
literally pipe in a file, ie: my script needs to be able to handle
(contrived example time..)
cat an_email | myscript.r
An email forwarder on my site does:
[address--starforge--co--uk] -> |/home/starforg/..../scgi-bin/scriptname.r
which does basically the same thing - emails sent to [address--starforge] are
piped into the rebol script.
Using copy would work fine (aside from security implications) if it didn't
stick each line in a separate string. :/
Chris
--
New sig in the works
Explorer2260, Designer and Coder
http://www.starforge.co.uk
--
Crash programs fail because they are based on the theory that, with
nine women pregnant, you can get a baby a month.
-- Wernher von Braun