return channel object for communicating with the asynchronously
executing 'source' code which will have a corresponding 'channel'
object in its executing namespace.
def remote_exec(self, source, stdout=None, stderr=None):
origin: Gateway
where:
function source:
def remote_exec(self, source, stdout=None, stderr=None):
""" return channel object for communicating with the asynchronously
executing 'source' code which will have a corresponding 'channel'
object in its executing namespace.
"""
try:
source = str(Source(source))
except NameError:
try:
import py
source = str(py.code.Source(source))
except ImportError:
pass
channel = self.newchannel()
outid = self._newredirectchannelid(stdout)
errid = self._newredirectchannelid(stderr)
self._outgoing.put(Message.CHANNEL_OPEN(channel.id,
(source, outid, errid)))
return channel
called in /home/johnny/projects/merlinux/py/dist/py/execnet/gateway.py
traceback execnet.SocketGateway.remote_exec.0
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.1
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.2
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.3
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.4
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.5
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.6
called in /home/johnny/projects/merlinux/py/dist/py/execnet/gateway.py
traceback execnet.SocketGateway.remote_exec.7
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.8
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.9
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.10
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.11
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.12
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.13
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.14
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.15
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.16
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.17
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.18
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py
traceback execnet.SocketGateway.remote_exec.19
called in /home/johnny/projects/merlinux/py/dist/py/execnet/testing/test_gateway.py