384
edits
Changes
→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>