#!/bin/sh foo1() { dd if=/dev/cdrom of=/home/$USER/iso/$input/$input.iso count=326239 | md5sum > /home/$USER/iso/$input/$input-md5sum & foo2 ; } foo2() { Xdialog --title "Creating image" --msgbox "please wait while image is being created" 8 45 } Xdialog --title "Make ISO Image" \ --inputbox "Enter file name (Without extension!)" 8 45 2> /tmp/inputfoomain.tmp.$$ retval=$? input=`cat /tmp/inputfoomain.tmp.$$` rm -f /tmp/inputfoomain.tmp.$$ case $retval in 0) if /home/$USER/iso/ = true ; then foo1 ; else mkdir /home/$USER/iso/ & mkdir /home/$USER/iso/$input & foo1 ; fi ;; 1) echo "Cancel pressed.";; 255) echo "Box closed.";; esac