Errrr, perhaps that's exactly what I've just given you!
Stick it in a file, change it to be executable by using:
then typing 'filename' will run the script. You should be able to stick an icon to it on Gnome/KDE/WindowMaker.
Sorry, my fault, forgot to mention making it executable.