Question: (Linux) Write a shell script to solve the following problem: 1. Write a shell script you can use to submit future scripting lab assignments. Your

(Linux)

Write a shell script to solve the following problem:

1. Write a shell script you can use to submit future scripting lab assignments. Your script shall:

a. Accept a lab number as a command line argument

b. Execute the script command, saving the output to ~/bin/labXX.out where XX is the lab number accepted as an argument. Executing the script command will launch a recording shell. Within this shell you can demonstrate execution of your lab assignments. Type exit to terminate the recording shell and resume execution of your shell script.

c. Execute a command string similar to the following to gather your shell script assignments and the output of the script command and generate a PDF for submission: a2ps -A fill -C -E -g -o - ~/bin/ci132-labxx-q??.sh ~/bin/labxx.out | ps2pdf - /opt/ci132/submit/ci132-labxx-username.pdf Variables should be used to provide the value of xx in the command string above.

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!