Changes

Jump to: navigation, search
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:lab2vm-backup-image-0text.png|thumb|left|175px375px|When executed as '''root''' or using '''sudo''' command, allows for selection of VM images in '''/var/lib/libvirt/images''' directory and backs-up user's home directory (allow option to various media optionscopy all or by vm #]]
|}
{|cellpadding="15" width="100%"
|-
|<blockquote>'''Script #1: Service Status (start and stop services- Text based):'''<br>[ [http://cs.senecac.on.ca/~murray.saul/service-start-text.bash service-start-text.bash] ] [ [http://cs.senecac.on.ca/~murray.saul/service-stop-text.bash service-stop-text.bash] ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>'''if''' statement</li><li>'''Here document''' (redirection)</li><li>'''service''' utility</li><li>grep</li><li>'''exit''' command</li><li>USER '''Environment Variable'''</li><li>'''redirection''' (both &gt; and &gt;&gt;)</li><li>testing by true-false return of pipeline command</li><li>'''for''' loop</li><li>'''command substitution'''</li><li>'''awk''' command</li><li>'''positional parameters'''</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab2:<br><blockquote>''' Students use '''wget''' to download existing shell script and run it to be completedsee what happens. Students are '''encouraged to view contents of more advanced shell script(s)''', to see where the commands are being used (from previous shell script), but are '''not required to understand more complex elements''' of these shell scripts.<br><br></blockquote>|[[Image:service_start_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to start '''non-running''' services]]|[[Image:service_stop_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to stop '''running''' services]]|} {|cellpadding="15" width="100%"|-|<blockquote>'''Script #2: Service Status (start and stop services: Graphical):'''<br>[ ] [ ](to be completed)<br><br>'''Scripting Skills:'''<blockquote><ul><li>x</li><li>x</li><li>x</li><li>x</li><li>x</li><li>x</li><li>x</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab2:<br><blockquote>''' Students use '''wget''' to download existing shell script and run it to see what happens. Students are '''encouraged to view contents of more advanced shell script(s)''', to see where the commands are being used (from previous shell script), but are '''not required to understand more complex elements''' of these shell scripts.<br><br></blockquote>|[[Image:lab5_1service_start_graphical_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to start '''non-running''' services]]|[[Image:service_stop_graphical_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to stop '''running''' services using a Graphical Interface]]
|}
13,420
edits

Navigation menu