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