help me in this project


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
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.

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.