LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Building an own linux/ubuntu shell (https://www.linuxquestions.org/questions/linux-newbie-8/building-an-own-linux-ubuntu-shell-4175431435/)

micflunu 10-10-2012 01:02 AM

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

pixellany 10-10-2012 01:35 AM

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?

micflunu 10-10-2012 01:42 AM

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

pixellany 10-10-2012 01:50 AM

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.

malekmustaq 10-10-2012 02:01 AM

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.

alexantosh 10-27-2012 08:20 AM

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

malekmustaq 10-27-2012 12:24 PM

Quote:

Originally Posted by alexantosh (Post 4816124)
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.

alexantosh 10-27-2012 05:24 PM

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


All times are GMT -5. The time now is 09:44 AM.