LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-10-2012, 02:02 AM   #1
micflunu
Member
 
Registered: Oct 2012
Posts: 73

Rep: Reputation: Disabled
Building an own linux/ubuntu shell


I have this project that asks me to Develop my own linux/ubuntu shell that:-
[a command accepting another command as an argument and executes that command]
[Display the process statistics and details of background tasks]
But the problem is i know nothing on how to build my own shell.I have tried to google some but the info i got was not brief enough with my short time deadline of submission.so i was hoping that some one to help me with materials to read??
Tnx
 
Old 10-10-2012, 02:35 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Is this homework? ....a project for your work?

When you say "develop a shell", do you mean something like BASH (the shell used by most Linux distros)?

What programming languages do you know?
 
Old 10-10-2012, 02:42 AM   #3
micflunu
Member
 
Registered: Oct 2012
Posts: 73

Original Poster
Rep: Reputation: Disabled
well i am working with C scripting.Yes i am a beginner to this course so i don't know much.Yes a simple C shell using a Vi editor
 
Old 10-10-2012, 02:50 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Do you mean the C programming language? (C is not a scripting language---programs have to be compiled). Have you already written C programs?

Have you studied the structure of a typical Linux shell? Have you looked at the source code for any of them?

Please give as much context as possible---including a description of what you are already expected to know from the class.
 
Old 10-10-2012, 03:01 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
It appears that micflunu is on to create a shell script --giving problem as creating a SHELL to a newbie is less expected.

So for that matter, micflunu you can start learning the basic on Bash Shell Scripting you can begin from this link.

Hope that helps.
 
1 members found this post helpful.
Old 10-27-2012, 09:20 AM   #6
alexantosh
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
pixellany, i guess it's "programming!". i have the same project with a few hours to go. so any help, ideas will be greatly appreciated. i guess i have to use things like fork(), child processes that am less familiar with at the moment. mainly to implement few functions like, ls, cd, pwd, cat. just if i get the starter code running i think i will find a way to implement these functions. thanks in advance
 
Old 10-27-2012, 01:24 PM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by alexantosh View Post
pixellany, i guess it's "programming!". i have the same project with a few hours to go. so any help, ideas will be greatly appreciated. i guess i have to use things like fork(), child processes that am less familiar with at the moment. mainly to implement few functions like, ls, cd, pwd, cat. just if i get the starter code running i think i will find a way to implement these functions. thanks in advance
If that must we call 'programming' then we may agree here that your concern is mainly about "*nix/Gnu/Linux Systems Programming" since these systems implement shells that frequently make C library function calls.

Here is a good book that may help you.

Hope that helps.

Good luck.

m.m.
 
Old 10-27-2012, 06:24 PM   #8
alexantosh
LQ Newbie
 
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
Thanks, i guess its worth a short. let me see if it can get me started atleast
 
  


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
failed building gnome-shell on squeeze malayo Debian 9 04-05-2012 12:26 AM
Building GNOME Shell from source on Ubuntu 10.04 LTS Kenny_Strawn Ubuntu 1 05-10-2010 07:16 AM
Building an interactive menu in perl for use as a shell jon_k Linux - Software 2 05-16-2004 10:55 PM
Building an interactive menu in perl for use as a shell jon_k Linux - General 0 05-15-2004 04:23 PM


All times are GMT -5. The time now is 06:42 PM.

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