Hey all,
I’m trying to attach a script’s output to IO (a socket. Is IO
the right term?)
I currently use a GServer script to accept connections from localhost.
I don’t know if that made sense, but is there any way to change the
default output to my socket output?
Well, except I’m not trying to send “hello”. I’m trying to keep my
script nice and clean, so I have a bunch of ugly code in a separate
file (which I call with require) and a method test(). If I pass io
as an argument with test:
def serve(io)
test(io)
end
and then later in test(io) have
io.puts
will the variable scope allow that?
Or should I find a way to reroute $stdout?
thanks,
ari
-------------------------------------------|
Nietzsche is my copilot