help me in this project

plesae

see Attach File

#define TRUE 1
while(TRUE){ //repeat forever
type_prompt(); //display prompt on the screen
read_command (command, parameters); //read input from terminal
if(fork()!=0){ //fork off child process
waitpid(‐1, &status, 0); //wait for child to exit
}
else{
execve(command, parameters, 0); //execute command
}
}

Write a shell that is similar to the above code snippet, but contains enough code that it actually works so
you can test it, your shell must support background jobs and command history.

Member Avatar for Mouche

Where are you stuck? Have you started yet?

One way to approach it is to do one function at a time. Start with type_prompt(). Think of what you need to display text (a prompt) on the screen and do that first. If you have trouble, post the code you have written and ask a specific question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.