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