Changes

Jump to: navigation, search
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>'''Example of simple text-based report shell script Demo:<br>''' [ [https://scs.senecac.on.ca/~murray.saul/text-report.bash text-report.bash] ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>'''if''' statement</li><li>'''exit''' command</li><li>USER '''Environment Variable'''</li><li>'''redirection''' (both &gt; and &gt;&gt;)</li><li>'''command substitution'''</li></ul></blockquote>'''Scripting Skills Match:''' <br>[ [https://docs.google.com/document/d/1CvdVdzUljH3ubcPFc6diSD3fnlMvVF59IOwTs-uA_r0/edit?usp=sharing ULI101] ] [https://docs.google.com/document/d/1UkrR9Bi431BEyWz7iTUIlIg1ycdqJTwwzHfbLkBdYnQ/edit?usp=sharing OPS235] ] [ [https://docs.google.com/document/d/17nTZZEg6rPYZT-rGiC2MHrz7TVHTw8aIMIvE6tqHnUk/edit?usp=sharing ops335] ] [ [https://docs.google.com/document/d/1RP_1QjQkKrvV8BLGRoglVZAg4v8Y1Bquuo7aVkS8glg/edit?usp=sharing OPS435] ]<br><br>'''Practical Consideration for scripting in lab1:'''<br><blockquote> Students create simple bash shell script, add elements, then have them copy and paste, then run this script. Key elements related to the script is evaluated and provides basis for other scripting tasks in other labs? Should midterm and/or final exam contain a scripting question? (recommended)<br><br></blockquote></blockquote>
|[[Image:lab1-script-text-report.png|thumb|left|400px|When executed as '''root''' or using '''sudo''' command, script generates a basic text-based report in a file]]
|}
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>'''Example of a graphical shell script Demo:<br>''' [ [https://scs.senecac.on.ca/~murray.saul/report.bash report.bash] ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>'''if''' statement</li><li>'''exit''' command</li><li>USER '''Environment Variable'''</li><li>'''redirection''' (both &gt; and &gt;&gt;)</li><li>'''zenity'''</li><li>'''for''' loop</li><li>'''command substitution'''</li><li>'''sed'''</li><li>'''set''' command ('''positional parameters''')</li></ul></blockquote>'''Scripting Skills Match:''' <br>[ [https://docs.google.com/document/d/1CvdVdzUljH3ubcPFc6diSD3fnlMvVF59IOwTs-uA_r0/edit?usp=sharing ULI101] ] [https://docs.google.com/document/d/1UkrR9Bi431BEyWz7iTUIlIg1ycdqJTwwzHfbLkBdYnQ/edit?usp=sharing OPS235] ]<br>[ [https://docs.google.com/document/d/17nTZZEg6rPYZT-rGiC2MHrz7TVHTw8aIMIvE6tqHnUk/edit?usp=sharing ops335] ] [ [https://docs.google.com/document/d/1RP_1QjQkKrvV8BLGRoglVZAg4v8Y1Bquuo7aVkS8glg/edit?usp=sharing OPS435] ]<br><br>'''Practical Consideration for scripting in lab1:<br><blockquote>''' Students use '''wget''' to download existing shell script and run it to see what happens. Students are '''encouraged to view contents of more advanced shell script(s)''', to see where the commands are being used (from previous shell script), but are '''not required to understand more complex elements''' of these shell scripts.<br><br></blockquote></blockquote>
|[[Image:lab1-script-1.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to '''start''' VMs]]
|[[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]]
{|cellpadding="15" width="100%"
|-
|<blockquote><blockquote>'''Example of a more sophisticated shell script demo''':<br>[ report3.bash ] (needs to be posted) Result: [ [https://scs.senecac.on.ca/~murray.saul/installation_report.html installation_report.html] ]<br><br>'''Scripting Skills:'''<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></blockquote>'''Scripting Skills Match:''' <br>[ [https://docs.google.com/document/d/1CvdVdzUljH3ubcPFc6diSD3fnlMvVF59IOwTs-uA_r0/edit?usp=sharing ULI101] ] [https://docs.google.com/document/d/1UkrR9Bi431BEyWz7iTUIlIg1ycdqJTwwzHfbLkBdYnQ/edit?usp=sharing OPS235] ]<br>[ [https://docs.google.com/document/d/17nTZZEg6rPYZT-rGiC2MHrz7TVHTw8aIMIvE6tqHnUk/edit?usp=sharing ops335] ] [ [https://docs.google.com/document/d/1RP_1QjQkKrvV8BLGRoglVZAg4v8Y1Bquuo7aVkS8glg/edit?usp=sharing OPS435] ]<br><br>'''Practical Consideration for scripting in lab1:<br><blockquote>''' Students use '''wget''' to download existing shell script and run it to see what happens. Students are '''encouraged to view contents of more advanced shell script(s)''', to see where the commands are being used (from previous shell script), but are '''not required to understand more complex elements''' of these shell scripts.<br><br></blockquote></blockquote>
|[[Image:report3_1.png|thumb|left|275px|When executed as '''root''' or using '''sudo''' command, generate HTML and JavaScript code and launches in Firefox]]
|[[Image:report3_2.png|thumb|left|275px|Note in web-browser, user can click "expandable" areas to view detail, or "collapse" to original form.]]
13,420
edits

Navigation menu