Simple script writing help - digital camera
In my quest of learning linux, I am now getting into writing scripts. I wrote the following script to automatically download and sort my digital pictures from my camera to my hard drive:
#! /bin/sh
echo -n "Plug camera into computer and press enter when ready to continue"
read
echo -n "What would you like to name the directory? (NO SPACES) > "
read dirname
mkdir /home/troy/Pictures/$dirname/
mount /mnt/camera
mv /mnt/camera/dcim/100olymp/*.jpg /home/troy/Pictures/$dirname/
cd /home/troy/Pictures/$dirname
umount /mnt/camera
echo -n "Remove camera from computer and press enter"
read
konqueror /home/troy/Pictures/$dirname
exit
It works perfect in xterm; however, I would like it to run if i just clicked on it from within KDE. What I mean, is that I would like it to load up an xterm window, then run the script within that window. Is there a simple line to add that will do this?
Thanks!
Troy
|