% CST8207 Week 12 Notes -- Shell Scripts: test helper, !, \[, true, false, elif, case, loops for/while, break, continue % Ian! D. Allen -- -- [www.idallen.com] % Winter 2018 - January to April 2018 - Updated 2018-04-13 01:17 EDT - [Course Home Page] - [Course Outline] - [All Weeks] - [Plain Text] C O U R S E    E V A L U A T I O N ================================== ____ _ ____ __ __ | _ \ | | ___ __ _ ___ ___ | _ \ ___ \ \ / /___ _ _ _ __ | |_) || | / _ \ / _` |/ __| / _ \ | | | | / _ \ \ V // _ \ | | | || '__| | __/ | || __/| (_| |\__ \| __/ | |_| || (_) | | || (_) || |_| || | |_| |_| \___| \__,_||___/ \___| |____/ \___/ |_| \___/ \__,_||_| ____ ____ _____ _____ _ _ _ / ___/ ___|_ _| | ____|_ ____ _| |_ _ __ _| |_(_) ___ _ __ | | \___ \ | | | _| \ \ / / _` | | | | |/ _` | __| |/ _ \| '_ \ | |___ ___) || | | |___ \ V / (_| | | |_| | (_| | |_| | (_) | | | | \____|____/ |_| |_____| \_/ \__,_|_|\__,_|\__,_|\__|_|\___/|_| |_| -    **Closes Sunday April 29.** - Feedback is anonymous. Professors are not told who said what and results are not released until after grades have been submitted. - I publish my [anonymous course evaluations], so your comments will be there to guide future students. - Listen to Dogbert on [satisfaction surveys] - The Checking Program for your assignments tells you how to turn off the nag message. Read All The Words. Readings, Assignments, Labs, Tests, and ToDo ============================================ Read (at least) these things (All The Words) -------------------------------------------- 1. [Week 12 Notes HTML] -- this file -- **Read All The Words** 2. [Shell Control Structures] -- if, else, test, `[...]`, for, while, case, break, continue, read, functions, &&, \|\|, errors 1>&2 3. Next week: [Shell Script Problems] -- arithmetic, syntax, test, boolean, etc. 4. [List of Commands] -- Command names you should know, listed by week 5. [Video Tutorials on Lynda.com] -- tagged by week number 6. [Linux and Sysadmin News in the World] Assignments, Quizzes, and Lab work this week -------------------------------------------- > **Reminder:** There are now two quizzes that you need to complete on > Blackboard as part of your term Quiz mark. A third quiz will be posted > before the Final Exam. The Quizzes are *not* optional; see the [Course > Outline]. Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. Just like in the Real World, not all due dates are on the same days or at the same times. - Review last week. Did you do everything assigned last week? - [Assignment #11 HTML] -- tar, processes, syslog, crontab, at, mail, shell script - The checking program has a feature to check just one of your scripts. - The due date is extended to April 20 (last day of classes before exams). - OPTIONAL: Do Bonus [Assignment #12 HTML] -- simple shell scripts - The checking program has a feature to check just one of your scripts. - OPTIONAL: Do Bonus [Assignment #10 HTML] to improve your Midterm #2 score. - This affects only your Midterm #2 score, not your Assignment score. - There is a checking program available to check your file format for this bonus assignment, but only people who Read All These Words will know about it. Wrong file format means no marks. *Do not redirect or save the output of this checking program!* Upcoming tests and exams ------------------------ This course has two midterm tests (10%, 15%) and one final exam (40%). ![Bring your favourite marker to your test] - Put these dates below into your phone! - Read the [Test Instructions] (all the words) before your tests and exam. - Use the [Algonquin Registered Name Game] link in the [Test Instructions] to confirm the spelling of your name before the test. - I don't answer questions about the instructions during the test. Ask me in a lab period before the test. ### The Final Exam -- 10:30am Saturday April 28 2018 -- 40% The Final Exam is three hours long and contains approximately 180 multiple-choice questions similar to those found in the three preceding [Practice Tests and Answers]. Do *all three* practice tests before the Final Exam! - Time: 10h30-13h30 (10:30am to 1:30pm) Saturday April 28 (Week 14) - Location: T102A,B,C. - This exam has **assigned seating** -- see your email for your assigned seat. - 180 minutes (three hours) for 180 questions - Do *all three* practice tests before the Final Exam! - Three Hours! Take a bathroom break before you start the exam! All three practice tests will be posted under [Practice Tests and Answers]. The Final Exam is comprehensive of the whole course; you need to do *all three* practice tests for the Final Exam. Notes from the Classroom ======================== - **Take notes in class!** Keep a pad open on your desk. - Don't forget to finish your five Blackboard quiz attempts for each of the Midterm 1 and Midterm 2 quizzes. There is a third quiz available to prepare for the Final Exam. Do five attempts in all three quizzes. - Regarding world-writable files in your account: See last week. - Nobody should have any files larger than 1MB in their CLS account. If you have uploaded an image that is larger than 1MB, you should make it smaller using the `convert` command directions given in the [Student Web Site] page from [Assignment #09]. - "The Bash Academy is an initiative to promote the bash shell language and educate people on its use." Commands Used ------------- > Keep a notebook with a [List of Commands] in it. > > - You need to write down yourself what each command *does*. > - Check the updated list of commands each week. > - I will check for this list in your lab periods. > - Bring your notes to class! Stop wasting time looking up commands. Finding world-writable files in your account -------------------------------------------- See last week's notes. Your own personal web page on the CLS ===================================== - View [all the Winter 18W class images] Who is using the VIM editor? ============================ This page may take a minute or two to load; be patient: [Who is using the VIM editor?] Tutoring ======== Many students find that hiring a personal tutor helps them get through the first term. Financial assistance is available. See the **Tutoring** heading in the [Course Introduction]. SSH Attacks on the CLS ====================== You are not paranoid if they really are out to get you! See the [Week 03 Notes HTML] for command pipelines to count the SSH attacks on the CLS. Locked out of the CLS ===================== When you are locked out, [follow the directions] in the notes to get your IP address re-enabled. ![Take Notes in Class] -- | Ian! D. Allen, BA, MMath - idallen@idallen.ca - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/ [Plain Text] - plain text version of this page in [Pandoc Markdown] format [www.idallen.com]: http://www.idallen.com/ [Course Home Page]: .. [Course Outline]: course_outline.pdf [All Weeks]: indexcgi.cgi [Plain Text]: week12notes.txt [anonymous course evaluations]: /#coursenotes [satisfaction surveys]: http://dilbert.com/strips/comic/2005-04-07/ [Week 12 Notes HTML]: week12notes.html [Shell Control Structures]: 730_control_statements.html [Shell Script Problems]: 740_script_problems.html [List of Commands]: 900_unix_command_list.html [Video Tutorials on Lynda.com]: 910_lynda_index.html [Linux and Sysadmin News in the World]: 950_linux_world.html [Assignment #11 HTML]: assignment11.html [Assignment #12 HTML]: assignment12.html [Assignment #10 HTML]: assignment10.html [Bring your favourite marker to your test]: data/sniff_markers.jpg "Bring your favourite marker to your test" [Test Instructions]: 000_test_instructions.html [Algonquin Registered Name Game]: http://cst8207.idallen.ca/~idallen/namegame.cgi [Practice Tests and Answers]: PRACTICE_TEST_README.html [Student Web Site]: 000_student_web_site.html [Assignment #09]: assignment09.html [all the Winter 18W class images]: http://cst8207.idallen.ca/montage18w.cgi [Who is using the VIM editor?]: http://cst8207.idallen.ca/vim18w.cgi [Course Introduction]: 050_course_introduction.html [Week 03 Notes HTML]: week03notes.html [follow the directions]: 070_course_linux_server.html#getting-locked-out-of-the-server [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/