CS 422 - Operating Systems
Batch Queue Program

Write a batch processing queue manager and a queue submission program. The queue manager will need to be kept running most the time and should monitor the queue for command files to be processed. When a file appears, begin executing it by forking a child process running the bash shell to process the commands in the command file and then remove the entry from the queue.

Use shared memory to hold the batch queue. Make sure you test for queue full upon submission and handle problems appropriately.

Include a cancel command that can be used by any user to remove any entry from the queue. If the entry is currently being executed, terminate the execution.

During execution, output should be redirected and logged into a log file.

Write a program that will print the list of files in the queue. Include an entry number to make it easier to specify which entry to cancel.


Summary of Requirements