Question: Write a shell program in C similar to csh that takes commands from the keyboard. In particular, your shell prompt must be the current time

 Write a shell program in C similar to "csh" that takes

Write a shell program in C similar to "csh" that takes commands from the keyboard. In particular, your shell prompt must be the current time (instead of, say, \% as is common in UNIX). Make it simple; that is, do not allow it to handle background processes, it can ignore the control-C key, and especially, do not design it to interpret shell scripts. You will need the following system calls: fork waitpid one of execv, execve, execvp (read the manual pages). You must NOT use the C library function "system" (you will receive a grade of zero if you do!)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!