13,420
edits
Changes
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>OPS435 Elements (Scripting Demo Contents):<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><br><br>Example of Shell script Demo 1 Scripts (untestedstart/stop VMs):<br>[ [[lab2 Shell Script Demo 1|vm-start.bash]] ](Under Construction)<br>Example of Shell script Demo 2 )untested(Under Construction):<br>[ [[lab2 Shell Script Demo 2|vm-stop.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]]