Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to write a simple Unix shell

Posted on 2007-03-22
3
Medium Priority
?
2,358 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 1500 total points
ID: 18771971
man fork
man execvp
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

688 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