3 2. A high-performance computer system accepts jobs which are described in submission files that have names ending with

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

3 2. A high-performance computer system accepts jobs which are described in submission files that have names ending with

Post by answerhappygod »

3 2 A High Performance Computer System Accepts Jobs Which Are Described In Submission Files That Have Names Ending With 1
3 2 A High Performance Computer System Accepts Jobs Which Are Described In Submission Files That Have Names Ending With 1 (449.85 KiB) Viewed 27 times
3 2. A high-performance computer system accepts jobs which are described in submission files that have names ending with the .submit extension, such as myjob. submit. They are submitted to the system using the command /usr/bin/submit, as follows: /usr/bin/submit myjob. submit a) What is the difference between an absolute path and a relative path in Linux? Give an example of each. What is the meaning of the tilde (-) character in the path -/job01.submit? [4] b) It is important to keep track of modifications to the job submission files so that earlier jobs can be repeated easily in the future. It is decided to store these in a Git repository. What command or commands would be used to: 1. Create a new Git repository in the current directory? 2. Add all the .submit files to this Git repository and commit the change with a suitable message? [3] c) A common task is to submit all the jobs in a given directory. A Bash script should be written to automate this process. Write a complete Bash script which, for each submission file in the current directory: 1. Prints the name of the file to the terminal. 2. Submits the job for execution using the /usr/bin/submit command described above. The script should exit with a successful status code after submitting all the jobs. [6] d) Linux programs return a numerical exit code to signify success or failure. What special Bash variable can be used to get this exit code? [1] e) The /usr/bin/submit command returns a non-zero status code to indicate an error. Modify your script so that this return code is printed to screen, and the script exits with the same code if it is non-zero. [4] f) In an update to the system, it is decided that rather than relying on the filename extension, submission files should be identified by the fact they contain the text "#SUBMIT" somewhere within their contents. Give a Linux command which, when typed in the terminal window, lists all files in the current directory which contain the text "#SUBMIT". You do not need to modify the Bash script. [2]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply