Changes

Jump to: navigation, search
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>Example of Shell Scripts:<br><ul><li>'''Using virsh (Virtual Shell):''' [ [https://scs.senecac.on.ca/~murray.saul/vm-start.bash vm-start.bash] ]<br>[ [https://scs.senecac.on.ca/~murray.saul/vm-stop.bash vm-stop.bash] ] (under construction)</li><li>'''Backing up VMs:''' [ ] (to be created)</li></ul><br><br>'''Scripting Skills:'''<blockquote><ul><li>'''if''' statement</li><li>'''for''' loop</li><li>'''Command Substitution'''</li><li>Advanced '''awk'''</li><li>'''positional parameters'''</li><li>'''sed'''</li><li>'''IO Stream vs Graphical Interaction''' (eg. zenity)</li><li>'''Scripting Samples (View and adapt)'''- don't "re-invent the wheel completely")</li><li>'''virsh''' command</li></ul></blockquote>'''Scripting Skills Match:''' [ [https://docs.google.com/document/d/1CvdVdzUljH3ubcPFc6diSD3fnlMvVF59IOwTs-uA_r0/edit?usp=sharing ULI101] ] [https://docs.google.com/document/d/1UkrR9Bi431BEyWz7iTUIlIg1ycdqJTwwzHfbLkBdYnQ/edit?usp=sharing OPS235] ]<br>[ [https://docs.google.com/document/d/17nTZZEg6rPYZT-rGiC2MHrz7TVHTw8aIMIvE6tqHnUk/edit?usp=sharing ops335] ] [ [https://docs.google.com/document/d/1RP_1QjQkKrvV8BLGRoglVZAg4v8Y1Bquuo7aVkS8glg/edit?usp=sharing OPS435] ]<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>
|[[Image:lab2-script-1.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to '''start''' VMs]]
|[[Image:lab2-script-2.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to stop '''running''' VMs]]
13,420
edits

Navigation menu