


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



In this part of the shell project, we will be adding job control to your shell. You should also continue using the Subversion source code control system to manage your project.
dash> sleep 100 [2]+ Stopped sleep 100 dash>
If there is no current foreground job, then the shell should just display a new prompt and ignore any input on the current line. For ease in testing (and making it easier for me to report bugs), have your shell print out “Caught Control-c” or “Caught Ctrl-z” when it catches these signals and no foreground job is running. Extend your jobs command so that it also shows stopped jobs.
that this implies that you can use the command fg to bring any running background job into the foreground.
Here are are some example scenarios. Suppose you have just stopped a foreground process and then back-grounded it, the output of your built-in command jobs would look something like the following (before and after the bg command):
dash> loop [3] Stopped loop dash> jobs [0] Running sleep 101 & [1] Running sleep 103 & [2] Running sleep 105 & [3] Stopped loop dash> bg [3] loop dash> jobs [0] Running sleep 101 & [1] Running sleep 103 & [2] Running sleep 105 & [3] Running loop & dash>
Here the program loop is just the following simplistic infinitely looping/sleeping program:
main(){for(;;){sleep(100);}}
It is better to use this program than the sleep command for this type of testing.
Here is another example:
dash> loop [0] Stopped loop dash> loop [1] Stopped loop dash> jobs [0] Stopped loop [1] Stopped loop dash> bg [1] loop dash> jobs [0] Stopped loop [1] Running loop & dash> bg [0] loop dash> jobs [0] Running loop & [1] Running loop &
your linked list, a copy must be left at the top level of your submitted folder. Failure to follow the above two instructions will cost you 10% of the grade.
Also make sure that there is a README file that contains your name, date, assignment number, design and observations about the assignment.
Make sure that you save the subversion log file as svn.log in your submission directory. Also the submission directory should be a subversion working directory.
Prepare your directory for submission by removing all executables and object files and other clutter. You should only have the source code, README files, Makefiles, test scripts and test files before submitting.
Change to the top level of your project directory and type the following command (on onyx) to submit the assignment.
submit amit cs453 4
or
submit amit cs552 4
This command will pick up all files in the current directory (as well as any subdirectories recursively) and time-stamp them before transferring the combined files to the instructor’s account.