Skip to content
Prev 145 / 2152 Next

snow, socket cluster: problem with path to rscript

On Fri, 17 Apr 2009, Matthieu Stigler wrote:

            
According to my man page that argument combination is not legal so I
don't know what you actually did.
the server call waits until a connection occurs and then returns an R
connection object.  The clinet socketConnection call returns a socket
connection if curresful and gives an error message if not.

So on the master do

s <- socketConnection(port = 10187, server = TRUE)

and this will wait for a connection and return to the prompt when a
connectin occurs.  On the wroker machine

telnet master 10187

will either succeed and wait until the server socket is closed or fail
with an error message about not being able to open the port.  If I use

nc master 10187

then no an successful connection nc waits (for input) until the server
closes the socket with close(s) and then returns to the shell prompt.
Failure for me is an immediate resurn to the shell prompt, no error
message (and the server side continues to wait).

luke