/[dejagnu]/dejagnu/lib/telnet.exp
ViewVC logotype

Diff of /dejagnu/lib/telnet.exp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by bje, Thu Aug 7 03:42:43 2003 UTC revision 1.6 by bje, Sat Aug 16 13:08:57 2003 UTC
# Line 4  Line 4 
4  # it under the terms of the GNU General Public License as published by  # it under the terms of the GNU General Public License as published by
5  # the Free Software Foundation; either version 2 of the License, or  # the Free Software Foundation; either version 2 of the License, or
6  # (at your option) any later version.  # (at your option) any later version.
7  #  #
8  # This program is distributed in the hope that it will be useful,  # This program is distributed in the hope that it will be useful,
9  # but WITHOUT ANY WARRANTY; without even the implied warranty of  # but WITHOUT ANY WARRANTY; without even the implied warranty of
10  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  # GNU General Public License for more details.  # GNU General Public License for more details.
12  #  #
13  # You should have received a copy of the GNU General Public License  # You should have received a copy of the GNU General Public License
14  # along with this program; if not, write to the Free Software  # along with this program; if not, write to the Free Software
15  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16    
17  # Please email any bugs, comments, and/or additions to this file to:  # Please email any bugs, comments, and/or additions to this file to:
18  # bug-dejagnu@gnu.org  # bug-dejagnu@gnu.org
# Line 78  proc telnet_open { hostname args } { Line 78  proc telnet_open { hostname args } {
78      if ![info exists shell_prompt] {    # if no prompt, then set it to something generic      if ![info exists shell_prompt] {    # if no prompt, then set it to something generic
79          set shell_prompt ".*> "          set shell_prompt ".*> "
80      }      }
81    
82      set tries 0      set tries 0
83      set result -1      set result -1
84      set need_respawn 1      set need_respawn 1
# Line 174  proc telnet_open { hostname args } { Line 174  proc telnet_open { hostname args } {
174              -re "\[\r\n\]+" {              -re "\[\r\n\]+" {
175                  exp_continue                  exp_continue
176              }              }
177              timeout {              timeout {
178                  exp_send "\n"                  exp_send "\n"
179              }              }
180              eof {              eof {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26