[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dejagnu
Subject:    Re: remote_open with SSH
From:       Tareq A Khandaker <takhanda () engmail ! uwaterloo ! ca>
Date:       2009-01-26 20:57:06
Message-ID: 20090126155706.87555i7plptryyso () www ! nexusmail ! uwaterloo ! ca
[Download RAW message or body]

Finally have remote_open with SSH working with the following changes  
(diff -U 2):

--- rsh.exp	2009-01-22 17:10:37.000000000 -0700
+++ /usr/share/dejagnu/rsh.exp	2009-01-23 14:58:30.000000000 -0700
@@ -22,4 +22,5 @@
  proc rsh_open { hostname } {
      global spawn_id
+    global board_info

      set tries 0
@@ -37,5 +38,5 @@

      if {[board_info $hostname exists username]} {
-	set rsh_useropts "-l [board_info $hostname username]"
+	set rsh_useropts "-l[board_info $hostname username]"
      } else {
  	set rsh_useropts ""
@@ -46,5 +47,5 @@
  	set hostname [board_info $hostname name]
      }
-    set hostname [lindex [split [board_info ${hostname} netport] ":"] 0]
+    set nethostname [lindex [split [board_info ${hostname} netport] ":"] 0]
      if {[board_info ${hostname} exists shell_prompt]} {
  	set shell_prompt [board_info ${hostname} shell_prompt]
@@ -52,10 +53,9 @@
  	set shell_prompt ".*> "
      }
-
      if {[board_info $hostname exists fileid]} {
  	unset board_info($hostname,fileid)
      }

-    spawn $RSH $rsh_useropts $hostname
+    spawn $RSH $rsh_useropts $nethostname
      if { $spawn_id < 0 } {
  	perror "invalid spawn id from $RSH"




_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
http://lists.gnu.org/mailman/listinfo/dejagnu

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic