Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-12-2005, 11:38 AM   #1
LQ Newbie
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Need to write a Bash Shell any advice?

Hello all,
I am new to the board and was looking for some help. I am a second year college student in IT Networking. Several of us broke away from the standard class Capstone course and hooked up with our Cisco instructor to set up a Portmaster 3500 to allow access by telnet to devices (routers, switches, etc) on our racks. We are using 19 ports off the Portmaster so we will need (per teachers instruction) 3 drop down menus containing 6 ports and each port will point to a specific device. He said this can be accomplished through a Bash Shell. My problem is I am an IT Networking major that has never done any programming. Can someone point me in the right direction or help me out with this. We have 1 week to get this done. Bonus points if it is in by Tuesday the 17th. Any help would be greatly appreciated....... ( I promise to stick around after this problem is resovled. I am done with IT and Microsoft and will start this fall on my BA which requires course work in C++, COBOL, so programming is in my future. )

Thanks Again if you can help me,

Old 05-12-2005, 12:49 PM   #2
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
1. i'd recommend you pick up SAMS Teach Yourself Shell Scripting. I have it and read it and it was very helpful.

2. Do you know linux at all? Shell scripting requires a basic knowledge of linux because a lot of the command line tools are used in shell scripting. This would make the task even harder to do in one week.

3. How new are you to programming? Like you don't know any concepts at all? If you don't understand variables, loops, control flow, if statements, etc - this would make the task of making a program in a week extremely hard.

4. What helps me write a program is i do a lot of work before even sitting down to the computer. I write out what the main goal of the program is getting as specific as i can, write out what variables i will need and their names, same with functions, etc. And i draft up what the flow of the program will look like in a flow chart.

hope that helps a little bit. (by the way for future post i wouldn't mention it is for school - a lot of people on here won't respond if they know it is helping you out with your homework. I know this isn't technically homework because it is extra credit but same lines)
Old 05-12-2005, 02:15 PM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Take a look at
Old 05-12-2005, 02:52 PM   #4
Dave Kelly
Registered: Aug 2004
Location: Todd Mission Texas
Distribution: Linspire
Posts: 215

Rep: Reputation: 31
Start with these online instructions: has his book. But it either expensive shipping or 6 days away.
"Shell Scripting Recipes: A Problem-Solution Approach"
Chris F.A. Johnson; Paperback; $26.39


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
write own linux shell in C razza Programming 5 12-10-2011 01:22 PM
Seeking advice on bash script satimis Programming 6 10-11-2004 12:01 PM
Bash Programming Advice Beppe83 Linux - Software 4 05-25-2004 05:11 PM
learning how to write shell ashley75 Linux - General 3 05-07-2004 03:05 AM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration