Solved

How to write a simple Unix shell

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 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