Question: (Linux) Write a shell script to solve the following problem: 1. Write a shell script using the script command and this command string: a2ps -A

(Linux)

Write a shell script to solve the following problem:

1. Write a shell script using the script command and this command string:

a2ps -A fill -C -E -g -o - ~/bin/ci132-labxx-q??.sh ~/bin/labxx.out | ps2pdf - /opt/ci132/submit/ci132-labxx-username.pdf

- The shell script should accept a lab number as a command line argument

- Execute the script command under the shell script, and save 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. Typing exit will terminate the recording shell and resume execution of your shell script.

- 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!