Open main menu

CDOT Wiki β

Changes

no edit summary
|-
|<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 (untested): [ [[lab2 Shell Script Demo 1|vm-start.bash]] ]<br>Example of Shell script Demo 2 )untested): [ [[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 launch VMs]]]|[[Image:hanslab2-script-2.jpgpng|thumb|left|175px275px|<b>Hans Heim</b><br />Sections When executed as '''Eroot''', or using '''Fsudo''' &amp; '''G''' <br /> hans.heim@senecacollege.ca<br />[http://hansheim.blogspot.ca/ Hans' class materials] command, provides VM status and opportunity to stop running VMs]]
|}
13,420
edits