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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.