LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2005, 03:31 PM   #1
khubeical
LQ Newbie
 
Registered: Sep 2005
Location: New Jersey
Distribution: debian
Posts: 1

Rep: Reputation: 0
Fedora... Shell Scripting.


Hello, im currently in a linux class at my IT institute. I need to make a simple bash shell script that creates a menu with 5 choices.
load the kde desktop
load the gnome desktop
run the calandar
open vi
and exit
heres what i have so far. any help would be greatly appreciated. i am n00btacular.
clear
echo"---------------"
echo"mainmenu"
echo"---------------"
echo "[1] Load KDE"
echo "[2] Load GNOME"
echo "[3] Run calandar"
echo "[4] Open nano"
echo "[5] Exit"
echo -n "Enter your choice"
read youch
case $yourch in
1) ???
2) ??? (switchin to kde or gnome is where i need the help)
3) cal ;;
4) nano ;;
5) exit 0 ;;
esac



ANY HELP????? thanks

 
Old 09-01-2005, 03:38 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50
I don't think we're supposed to help you with homework.

P.S. nano and vi are different
 
Old 09-01-2005, 03:40 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You might just be able to launch gnome-session and whatever kde's equivalent is.
 
Old 09-01-2005, 03:49 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50
Quote:
Originally posted by Matir
You might just be able to launch gnome-session and whatever kde's equivalent is.
I think that is "startkde".
 
Old 10-03-2005, 10:57 AM   #5
DoctorWho
LQ Newbie
 
Registered: Sep 2005
Posts: 20

Rep: Reputation: 0
Spoon is correct, YOU are supposed to figure out your own homework.
In FACT this is a PLE which accounts for 25% of your final grade. The reason I know this is because I am prolly one of your instructors! Yes we ACTIVELY monitor these and other forums Good luck on your exams .....
 
Old 10-03-2005, 01:53 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Uh-oh.
 
Old 10-03-2005, 03:20 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
The reason I know this is because I am prolly one of your instructors! Yes we ACTIVELY monitor these and other forums
Now we know where the linux users get grammar, punctuation and spelling from!
 
Old 10-03-2005, 04:04 PM   #8
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
Quote:
Originally posted by DoctorWho
Spoon is correct, YOU are supposed to figure out your own homework.
In FACT this is a PLE which accounts for 25% of your final grade. The reason I know this is because I am prolly one of your instructors! Yes we ACTIVELY monitor these and other forums Good luck on your exams .....
this is the best post i have ever seen.
 
  


Reply


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
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 04:32 PM
Shell Scripting Question(s) for Fedora 2 iamrockstarmike Linux - General 4 07-13-2005 07:58 AM
shell scripting Prasun1 Linux - General 1 06-29-2005 07:44 AM
Shell Scripting kidestranged Linux - General 5 07-28-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 AM.

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