Changes

Jump to: navigation, search
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>OPS435 Elements Example of Shell Scripts (start/stop VMs):<br>[ [[lab2 Shell Script Demo 1|vm-start.bash]] ](Scripting Under Construction)<br>Example of Shell script Demo Contents2 (Under Construction):<br>[ [[lab2 Shell Script Demo 2|vm-stop.bash]] ]<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:''' [ULI101] [OPS435]<br><br>Example of Shell Scripts (start/stop VMs)'''Practical Consideration for scripting in lab1:<br>[ [[lab2 Shell Script Demo 1|vm-start.bash]] ](Under Construction)<brblockquote>Example ''' Students use '''wget''' to download existing shell script and run it to see what happens. Students are '''encouraged to view contents of Shell more advanced shell script Demo 2 (Under Constructions)''', to see where the commands are being used (from previous shell script):<br>[ [[lab2 Shell Script Demo 2|vm-stop, but are '''not required to understand more complex elements''' of these shell scripts.bash]] ]<br><br></blockquote></blockquote>
|[[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