From: miljenko Date: Mon, 5 Dec 2005 10:46:08 +0000 (+0000) Subject: Added Shell window support for MS Windows. X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=14bca2d0f7683803b00efe7ae1dc3ae520f2d6f9;p=imunes.git Added Shell window support for MS Windows. Bug found by: Submitted by: Requested by: Reviewed by: Approved by: Obtained from: --- diff --git a/editor.tcl b/editor.tcl index 2db99a0..58c839a 100755 --- a/editor.tcl +++ b/editor.tcl @@ -796,12 +796,24 @@ proc button3node { c x y } { proc spawnShell { node cmd } { - global eid + global eid remote_exec exec_host gui_unix set node_id $eid\_$node - nexec xterm -sb -rightbar \ - -T "IMUNES: [getNodeName $node] (console)" \ - -e "vimage $node_id $cmd" & + + if { $remote_exec } { + nexec vimage_shell.server.sh $node_id 1234 & + if { $gui_unix } { + exec xterm -sb -rightbar \ + -T "IMUNES: [getNodeName $node] (console)" \ + -e "nc $exec_host 1234" & + } else { + exec cmd /c nc $exec_host 1234 & + } + } else { + nexec xterm -sb -rightbar \ + -T "IMUNES: [getNodeName $node] (console)" \ + -e "vimage $node_id $cmd" & + } }