| Authors: | Holger Krekel
merlinux GmbH |
|---|---|
| Date: | 13th March 2006 |
interactive:
gw = py.execnet.SshGateway('codespeak.net')
channel = gw.remote_exec("""
for filename in channel:
try:
content = open(filename).read()
except (OSError, IOError):
content = None
channel.send(content)
""")
ad-hoc p2p networks
chaining channels / passing channels around
ensure it also works nicely on win32
btw, py.execnet is part of the py lib