#!/usr/bin/env ruby # -*- coding: utf-8 -*- hajime=spawn"display -geometry +0+20 toppu.xcf" hajime sleep(2) Process.kill(:INT, pid)