Open main menu

CDOT Wiki β

Changes

no edit summary
|[[Image:lab1-script-2.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to stop '''running''' VMs]]
|}
 
:Script demo of generating web-based report (report2.bash)
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>OPS435 Elements (Scripting Demo Contents):<blockquote><ul><li>'''if''' statement</li><li>'''forexit''' loopcommand</li><li>USER '''Command SubstitutionEnvironment Variable'''</li><li>Advanced '''awkredirection'''(both &gt; and &gt;&gt;)</li><li>'''positional parametersfor'''loop</li><li>'''sedCommand Substitution'''</li>><li>'''IO Stream vs Graphical Interactionpositional parameters''' (eg. zenity)</li><li>'''Scripting Samples (View and adapt)sed'''- don't "re-invent the wheel completely")</li><li>'''virshzenity''' command</li></ul></blockquote><br><br>Example of Shell script Demo 1 (untested):<br>[ [[lab2 Shell Script Demo 1|vm-start.bash]] ]<br>Example of Shell script Demo 2 )untested):<br>[ [[lab2 Shell Script Demo 2|vm-stop.bash]] ]<br><br></blockquote></blockquote>|[[Image:lab2lab1-script-1.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity displays dialog box (via zenity command) to '''start''' VMsgenerate text-based report]]|[[Image:lab2lab1-script-2.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity displays dialog box (via zenity command) to stop '''running''' VMsgenerate text-based report]]
|}
13,420
edits