#!/bin/sh # double-check with user before you run the executable/script! Xdialog --title "Executable File" \ --yesno "Are you sure you want to run this? \n\n" 0 0 if [ $? == 1 ]; then exit fi pth=`dirname "$1"` cd "$pth" x=basename "$1" ./x exit