Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78ed7f2
commit ed1306b
Showing
6 changed files
with
134 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
import sys | ||
import rpyc | ||
from plumbum import SshMachine | ||
from rpyc.utils.zerodeploy import deployment | ||
from rpyc.utils.zerodeploy import DeployedServer | ||
from rpyc.utils.splitbrain import splitbrain | ||
|
||
mach = SshMachine("192.168.1.117") | ||
|
||
print sys.platform | ||
|
||
with deployment(mach) as dep: | ||
with DeployedServer(mach) as dep: | ||
conn = dep.classic_connect() | ||
print conn.modules.sys.platform | ||
|
||
try: | ||
import posix | ||
except ImportError: | ||
pass | ||
except ImportError as ex: | ||
print ex | ||
|
||
with splitbrain(conn): | ||
import posix | ||
posix.stat | ||
print posix.stat("/boot") | ||
|
||
print posix | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version = (3, 3, 0) | ||
version_string = "3.3.0" | ||
release_date = "2013.03.01" | ||
release_date = "2013.07.01" | ||
|
This file was deleted.
Oops, something went wrong.