#!/usr/bin/env ruby # -*- coding: utf-8 -*- pid=spawn"display -geometry +10+20 image.jpg" sleep(1) process.kill(:INT,pid)