Question: UNiX In lab4, we used a simple shell script find_a_out.sh to find all the files named a.out in the current folder, write the results to
UNiX
In lab4, we used a simple shell script find_a_out.sh to find all the files named a.out in the current folder, write the results to files_to_remove.txt, and repeat. We then used such a script to learn job control commands so as to relegate a job to the background, bring it back to the foreground, list all active jobs, suspend a foreground job, and kill a job. Now, remove files_to_remove.txt (if it is there) to have a clean start for the commands below.
A. In one shell, run two jobs running find_a_out.sh in the background; in another shell, monitor files_to_remove.txt using the tail command (let it continue).
B. Suspend one of jobs you started in step A above.
C. Suspend the other job you started in step A above.
D. Resume these two jobs in background but in the reverse order from how they were started.
E. Kill these two jobs one by one.
F. Stop the tail command that you started in step A above.
G. Take a screen shot of the first shell that shows all commands from step A through step F above and save it as a4_p2.jpeg.
H. Edit files_to_remove.txt with Vim such that sections in that file are labeled with the step letters A, B, C, and D.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
