Вечер добрый Раньше никогда программ не писал, решил попробовать Есть вот такой скрипт: #! /usr/bin/wish8.4 package require fileutil package require BWidget proc ping {ipinput packinput} { global a set a 1 .top.t insert end "Ping $ipinput:\n" if {$packinput==""} { set packinput 5 } for {set i 0} {$i!=$packinput} {incr i} { exec ping -nc 1 $ipinput > ping set text [string replace [lindex [fileutil::grep "bytes from" ping] 0] 0 6] .top.t insert end $text\n .top.t see end if {$a==0} { break } update } } toplevel .top -width 370 -height 300 entry .top.e1 -width 15 -textvariable ipinput entry .top.e2 -width 5 -textvariable packinput label .top.ip -text IP: label .top.count -text Packets: button .top.b1 -text "Ping" -command {ping $ipinput $packinput} button .top.b2 -text "Quit" -command exit button .top.b3 -text "Stop" -command {set a 0} text .top.t -width 60 -height 9 -relief sunken -bd 2 place .top.t -x 0 -y 100 place .top.e1 -x 50 -y 2 place .top.e2 -x 50 -y 30 place .top.ip -x 0 -y 2 place .top.count -x 0 -y 30 place .top.b1 -x 5 -y 70 place .top.b3 -x 75 -y 70 place .top.b2 -x 135 -y 70 За исполнение больно не бить Вопрос - почему при отсутствующем пинге до адреса, форма перестает реагировать на кнопки, а потом случается child process exited abnormally? И что это за второе окошко при запуске?