Changes

Jump to: navigation, search
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>Example of a more sophisticated shell script demo:<br>[ [[lab2 Shell Script Demo 1|report3.bash]] ]<br><br>OPS435 Elements (Scripting Demo Contents):<blockquote><ul><li>'''if''' statement</li><li>'''exit''' command</li><li>USER '''Environment Variable'''</li><li>'''redirection''' (both &gt; and &gt;&gt;)</li><li>'''for''' loop</li><li>'''Command Substitution'''</li><li>'''positional parameters'''</li><li>'''sed'''</li><li>'''zenity'''</li></ul><br><br>'''Practical Consideration for scripting in lab1:''' Students use wget to download existing shell script and run it to see what happens. Students are encouraged to view contents of shell script, to see where the commands are being used (from previous shell script), but are not required to understand more complex elements of this shell script.<br><br><</blockquote></blockquote>|[[Image:report3_1.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, displays dialog box (via zenity command) to generate text-based reportHTML and JavaScript code and launches in Firefox]]|[[Image:report3_2.png|thumb|left|275px|When executed as '''root''' Note in web-browser, user can click "expandable" areas to view detail, or using '''sudo''' command,displays dialog box (via zenity command) "collapse" to generate text-based reportoriginal form.]]
|}
13,420
edits

Navigation menu