summaryrefslogtreecommitdiffhomepage
path: root/demo_windows.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-11-06 20:32:08 +0000
committerRobey Pointer <robey@lag.net>2004-11-06 20:32:08 +0000
commite86c5f0106cb83ae423f6ef7dfc04e51b62c8439 (patch)
tree60667fe074ee700c77741fa3861070ac1537a8b4 /demo_windows.py
parent1d1a60047c1c7b09dd49c0444c2ea88183be3872 (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-100]
don't forget demo_windows.py update MANIFEST.in to include demo_windows.py and not include the demo keys (they're in tests/ now). clean up the README to explain the demo scripts better now, since there are so many of them. then fix up the demo scripts to look in tests/ for the keys. demo_windows.py doesn't need to call get_pty() (in fact, i think that's blowing openssh's mind) and was executing the wrong command.
Diffstat (limited to 'demo_windows.py')
-rw-r--r--demo_windows.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/demo_windows.py b/demo_windows.py
index a31a6429..5d870907 100644
--- a/demo_windows.py
+++ b/demo_windows.py
@@ -38,7 +38,7 @@ def load_host_keys():
# setup logging
-paramiko.util.log_to_file('demo.log')
+paramiko.util.log_to_file('demo_windows.log')
# get hostname
username = ''
@@ -81,16 +81,15 @@ try:
t = paramiko.Transport((hostname, port))
t.connect(username=username, password=password, hostkey=hostkey)
chan = t.open_session()
- chan.get_pty()
print '*** Here we go!'
print
print '>>> ls'
- chan.exec_command('ps auxww')
+ chan.exec_command('ls')
f = chan.makefile('r+')
for line in f:
print line.strip('\n')
-
+
chan.close()
t.close()