DevOps virtualization
Begin by logging into your CLI Virtual Machine. (You should be able to ssh to it now, right?).
Open a second ssh terminal to scratch.cs.dixie.edu
and run the command launch_lab9 <ip address>
. You should replace the <ip address>
with the ip of your virtual machine. If you have successfully copied your keys over from a previous assignment, this command will prep your machine to do this lab. If you re-run this command, it will restart any processes that you kill later on.
Perform the following tasks on your virtual machine:
grumpy.sh
, dopey.sh
.sneezy.sh
process and put it in a file /mypid.txt
(NOTE: not in your home directory. The file should contain a number, thats it!!) (You will need to use sudo powers to do this. Something like: sudo vim /mypid.txt
.)doc.sh
process and put it in a file /myparent.txt
(NOTE: not in your home directory. The file should contain a number, thats it!!)bashful.sh
process and put it in a file /mytime.txt
(NOTE: not in your home directory. The file should contain a time like 10:04
. If you launched it a few days ago, it will display a date like Mar04, instead of a time.)cmatrix
program.Create the following cron jobs on your CLI Virtual Machine in your users crontab file (DO NOT use sudo)
txt
. HINT: use a wildcard * in your command.The grading script will be run as you are logged into scratch. The command you will execute will be similar for all of
your assignments that have an autograder. Here is a sample of the command you will run: run_grader.py --n 2 --ip 1.2.3.4
. The 2 is representative of lab2. (Lab 3 would replace the 2 with a 3). NOTE you will pass in the ip address of your virtual machine that you have created. You will see some feedback. You should make sure that all your tests pass and that your score is correctly recorded. Please see your instructor for any help or questi ons on the output.