Changes

Jump to: navigation, search

OPS245 Lab 1

158 bytes added, 13:01, 14 June 2021
INVESTIGATION 4: Using Python Scripting to Generate System Information Reports
:'''Perform the Following Steps:'''
<ol>
<li>Install python3 on your Centos Host machine.Open a terminal and type:</li><code style="color:#3366CC;font-family:courier;font-size:.9em;margin-left:20px;font-weight:bold;">sudo yum install python3</code>
<li><ul><li>Create a new file in your ~/bin directory called '''myreport.py'''</li>
<li>Since we haven't covered if statements in python yet, we won't be able to check if the user running the script is root. For now, we will have to trust ourselves to remember to use elevated permissions to run this script. We will correct this in lab 2.</li>

Navigation menu