diff options
author | Tar Committer <tar@ocjtech.us> | 2006-08-12 02:59:43 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2006-08-12 02:59:43 +0000 |
commit | a0be206eb419f63eeb436631cc91b3456dff006f (patch) | |
tree | c6881dc33ba7c94bb44193930402067bbe4350f5 /bin/tntlogin.in | |
parent | 1cc9f22072de1d314a67387aac57740fb25c5258 (diff) | |
download | rancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.gz rancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.xz rancid-a0be206eb419f63eeb436631cc91b3456dff006f.zip |
Imported from rancid-2.3.2a5.tar.gz.rancid-2.3.2a5
Diffstat (limited to 'bin/tntlogin.in')
-rw-r--r-- | bin/tntlogin.in | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/tntlogin.in b/bin/tntlogin.in index 027be07..164fd94 100644 --- a/bin/tntlogin.in +++ b/bin/tntlogin.in @@ -1,8 +1,8 @@ #! @EXPECT_PATH@ -- ## -## $Id: tntlogin.in,v 1.17 2005/06/14 20:20:44 heas Exp $ +## $Id: tntlogin.in,v 1.20 2006/08/10 07:00:31 heas Exp $ ## -## Copyright (C) 1997-2004 by Terrapin Communications, Inc. +## Copyright (C) 1997-2006 by Terrapin Communications, Inc. ## All rights reserved. ## ## This software may be freely copied, modified and redistributed @@ -419,10 +419,12 @@ proc run_commands { prompt command } { # send "y\r" exp_continue } - "\n" { exp_continue } - "\[^\n\r *]*Session terminated" { return 0 } - timeout { return 0 } - eof { return 0 } + "\n" { exp_continue } + "\[^\n\r *]*Session terminated" { return 0 } + timeout { catch {close}; wait + return 0 + } + eof { return 0 } } set in_proc 0 } |