Solved

How to write a simple Unix shell

Posted on 2007-03-22
3
2,318 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

861 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

25 Experts available now in Live!

Get 1:1 Help Now