learner Shell

a task given to me is to make a shell which will have the following qualities....
"The most rudimentary shell is structured as the following loop:

  1. Print out a prompt (e.g., "OS_Spring2011_Shell$ ");
  2. Read a line from the user;
  3. Parse the line into the program name and an array of parameters;
  4. Use the fork() system call to spawn a new child process;
    o The child process then uses the exec() system call (or one of its variants)
    to launch the specified program;
    o The parent process (the shell) uses the wait() system call (or one of its
    variants) to wait for the child to terminate;
  5. Once the child (the launched program) finishes, the shell repeats the loop by jumping to 1."
    please help me in this matter........

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.

1 Like

have you tried anything so far about this?