summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2004-03-01 21:05:22 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2004-03-01 21:05:22 +0000
commitf5cc4590d6b6813204129ec4c811ede7da4b0cec (patch)
tree05d62f6ecdd1205fbf686ff81436b49ea604a0a4
parent7e35e5b132fa8235e203ae913b52629afa43bdb3 (diff)
downloadpexpect-f5cc4590d6b6813204129ec4c811ede7da4b0cec.tar.gz
Need a long wait before the expect(EOF)...
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@212 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/examples/ssh_tunnel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pexpect/examples/ssh_tunnel.py b/pexpect/examples/ssh_tunnel.py
index c4c3eeb..471a886 100644
--- a/pexpect/examples/ssh_tunnel.py
+++ b/pexpect/examples/ssh_tunnel.py
@@ -6,7 +6,7 @@ tunnel_command = 'ssh -C -n -L 25:%(host)s:25 -L 110:%(host)s:110 %(user)s@%(hos
nothing_script = """#!/bin/sh
while true; do sleep 53; done
"""
-host = 'example.com'
+host = 'spruce.he.net' #'example.com'
user = raw_input('Username: ')
X = getpass.getpass('Password: ')
@@ -15,6 +15,7 @@ def start_tunnel ():
ssh_tunnel.expect ('password:')
time.sleep (0.1)
ssh_tunnel.sendline (X)
+ time.sleep (60)
ssh_tunnel.expect (pexpect.EOF)
while 1: