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
Get step-by-step solutions from verified subject matter experts
