Open main menu

CDOT Wiki β

Changes

no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote>'''Script #1: Backup VM images:'''[ [https://scs.senecac.on.ca/~elizabeth.kopiec/backupVM.bash backupVM.bash] ]<br>'''Sample output:''' [ [ https://scs.senecac.on.ca/~elizabeth.kopiec/VMBackupOutput.png Output Image] ] (to be created)<br><br>'''Scripting Skills:'''<blockquote><ul><li>xIf and Else If (elif) - With numerical and string comparisons in the test statement</li><li>xUser Input (read statement)</li><li>xFor loop with a hard coded list</li><li>xEchoing a variable to grep to validate input</li><li>xChecking exit status of previous command (should be a review from ULI101)</li><li>xgzip command</li><li>xEnvironment variables</li><li>x</li><li>x</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab1lab 2:'''<br><blockquote> Students create simple bash shell script, add elements, then have them copy and paste, then run this script. Key elements related to the script is evaluated and provides basis for other scripting tasks in other labs? Should midterm and/or final exam contain a scripting question? (recommended)TBD<br><br>
|[[Image:lab2-backup-image-0.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, allows for selection of VM images in '''/var/lib/libvirt/images''' directory and backs-up to various media options]]
|}