Open main menu

CDOT Wiki β

Changes

OPS445 Online Lab5

274 bytes added, 15:48, 20 January 2023
wget addr switched to github
=== Create a Python Script Demonstrating Reading Files ===
<blockquote style="margin-left:35px;">{{Admon/note|style="padding-left:25px"|NOTE|If your professor is asking you to submit labs on GitHub, first follow their instructions on Blackboard to clone the lab5 repository.}}</blockquote>
 
:#Create the '''~/ops445/lab5/lab5a.py''' script.
:#Use the following as a template:<source lang="python">
cd ~/ops445/lab5/
pwd #confirm that you are in the right directory
ls CheckLab5.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chansenecaops445/ops435lab5-template/labsblob/LabCheckScriptsmaster/CheckLab5.py?raw=true' -O CheckLab5.py
python3 ./CheckLab5.py -f -v lab5a
</source>
cd ~/ops445/lab5/
pwd #confirm that you are in the right directory
ls CheckLab5.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chansenecaops445/ops435lab5-template/labsblob/LabCheckScriptsmaster/CheckLab5.py?raw=true' -O CheckLab5.py
python3 ./CheckLab5.py -f -v lab5b
</source>
cd ~/ops445/lab5/
pwd #confirm that you are in the right directory
ls CheckLab5.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chansenecaops445/ops435lab5-template/labsblob/LabCheckScriptsmaster/CheckLab5.py?raw=true' -O CheckLab5.py
python3 ./CheckLab5.py -f -v lab5c
</source>