Changes

Jump to: navigation, search
no edit summary
{|cellpadding="15" width="100%"
|-
|<blockquote>'''Script #1: Service Status (start and stop services - Text based):'''<br>[ [http://cs.senecac.on.ca/~murray.saul/service-start-text.bash service-start-text.bash] ] [ [http://cs.senecac.on.ca/~murray.saul/service-stop-text.bash service-stop-text.bash] ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>x'''if''' statement</li><li>xHere document (redirection)</li><li>x'''service''' utility</li><li>xgrep</li><li>x'''exit''' command</li><li>xUSER '''Environment Variable'''</li><li>x'''redirection''' (both &gt; and &gt;&gt;)</li><li>testing by true-false return of pipeline command</li><li>'''for''' loop</li><li>'''command substitution'''</li><li>'''awk''' command ('''positional parameters''')</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab2:<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>
|[[Image:service_start_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to start '''non-running''' services]]
|[[Image:service_stop_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides Service status and opportunity to stop '''running''' services]]
13,420
edits

Navigation menu