Solved

How to write a simple Unix shell

Posted on 2007-03-22
3
2,345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 36
Looking for a specific application/software 2 124
maven archtype selection in eclipse 1 59
only14 challenge 19 89
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.

752 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