Solved

How to write a simple Unix shell

Posted on 2007-03-22
3
2,303 Views
Last Modified: 2013-12-26
Hello all
I'm new in Unix, i'd like to write my own simple shell. It presents a command prompt and accepts and performs simple commands. Commands should be performed by child processes, created by use of fork(). The execvp() call should then be used to replace the child process image with the image of the desired UNIX command.It should accept at the prompt a UNIX command. It then performs the command, and then present a new prompt to the user. Command use should be restricted to the format
command [-option] [argument]
Thank you very much
0
Comment
Question by:khoama
  • 2
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 18771369
Is this homework?  http:/help.jsp#hi105
Do you have a question?
0
 
LVL 2

Author Comment

by:khoama
ID: 18771837
Actually this is my homework,i really dont want anybody do my homework for me but i dont know where to start or what to do because this is the first time i know something about Unix.I just knew some basic C.So i think the best way is whether you can give me some tutorial source about Unix and fork or execvp or anything concern?Thank you
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 18771971
man fork
man execvp
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now