ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have some experence coding in C++, Java but that was a HS class a few years ago, but we never did any work with external files so thats where I need help
declare var ISO
echo "Welcome to ISO tools"
echo "1) Mount an Image"
echo "2) Unmount Image"
echo "3) Quit"
if [ $var -eq "1" ]
umount /mnt/iso #I got some wierd message about it being mounted multiple times so I added this
echo "Select an ISO to mount"
#need to display the all the ISO locations and have them numbered so the number can be selected
if [ $ISO -eq "0" ]
echo "enter the new ISO's path"
echo $ISO >> iso.dat
while [ $ISO -eq $var ]
# $ISO needs to be redefined as with its coorisponding location
mount -t iso9660 -o loop $ISO /mnt/iso
elif [ $var -eq "2" ]
elif [ $var -eq "3" ]
The wide tab stops & esp. the long comment lines keep people from easily reading & grasping your code. Especially you, if you come back to it in, say, 6 months time. As a side effect it hoses the display of the entire thread on Konqueror -- it forces horizontal scrolling == PITA.
If you have any doubt about the idea of your future self as one of your most important readers, track down & read ESR's (Eric Raymond) piece on why he likes Python better than Perl.