From: Lg Lg Date: 2010-08-17T13:11:01+09:00 Subject: Killing a gnome-terminal process from a ruby script Hello: I'm working on a dialog manager and I'm stuck at the part where I need to launch a terminal process and also kill it. This is what I have so far. Launch: @terminal_pid = IO.popen('gnome-terminal') Kill Process.kill :SIGTERM, @terminal_pid.pid if !@terminal_pid.nil? That method seems to work for stuff such as google-chrome, gcalctool, pidgin, however it has no effect on gnome-terminal nor gedit. The Ruby script runs within a terminal window itself so I have no interest in "kill -9 'gnome-terminal'". I am trying to kill only that specific @terminal_pid Can anyone explain what is going on or a way of fixing it? Thank you in advance! PS: -- Posted via http://www.ruby-forum.com/.