1 / 26

Week Six Agenda

Week Six Agenda. Announcements (in-class question) Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Review mid-term exam Break-out problems Upcoming deadlines Lab assistance, questions and answers. Week five review.

kimberly
Télécharger la présentation

Week Six Agenda

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week Six Agenda • Announcements (in-class question) • Link of the week • Review week four lab assignment • This week’s expected outcomes • Next lab assignment • Review mid-term exam • Break-out problems • Upcoming deadlines • Lab assistance, questions and answers

  2. Week five review Arithmetic Expressions (Korn Shell) expression <= expression Less than or equal to. expression >= expression Greater than or equal to. expression< expression Less than. expression > expression Greater than. expression != expression Not equal to. expression & expression Bitwise and.

  3. Week five review Conditional Expression (Korn Shell) Conditional expression primitives are uniary and binary expressions that evaluate to True and False. -r file True if file is exist and is readable. -w file True if file exists and writeable. -x file True if file exists and is executable -f file True if file exists and is a regular file. -d file True if file exists and is a directory. Example: if [ -f $2 ] then … fi

  4. Week five review test string1 = string2 True if string1 equals string2. test string1 != string2 True if string1 is not equal to string2. test string1 < string2 True if string1 comes before string2 based on the ASCII value of their characters. test string1 > string2 True if string1 comes after string2 based on the ASCII value of their characters. expl –eq exp2 True if the arithmetic values equal. expl –ne exp2 True if the arithmetic values don’t equal.

  5. Week five review Example: while test “$1” do … done test –w printnum.sh then … fi

  6. Link of the week http://en.wikipedia.org/wiki/Computer_security This article describes how security can be achieved through design and engineering http://en.wikipedia.org/wiki/Secure_Computing Firewalls, Safe Word authentication products, Internet filtering products like Smart Filter, Bess, and Webwasher

  7. Link of the week • Define: Trusted System • Define: Trusted Computing • Where are trusted systems utilized? • How are trusted systems utilized?

  8. Review week five lab assignment

  9. Review week five lab assignment • Define a make command • Define the makefile • Comments within a makefile (#) • makefile continuation lines (\) • Rule tells make both when and how to make a file • Dependency Line is a line with a colon (:) test_build.sh contains the make command which calls the makefile • Demonstrate makefile script under ~dandrear/temp (Einstein)

  10. Review week five lab assignment What is the makefile utility used for? Other software products that perform similar bundling operations - ANT developed by Apache Jakarta - ANT2 supplied from the Free Software Foundation which is part of Red Hat. What is a dependency between source files? main.cpp  employee.cpp  address.cpp What are the two parts of a dependency rule? 1) What files a file is dependent on 2) Rule that tells how to recompile the file What are the differences between a makefile and a shell script? The rules in a makefile are executed based on dependency, and not sequential order. Scripts execute in sequential order.

  11. Review week five lab assignment Target : Dependencies (prerequisites) <tab> Rule prog: a.o b.o c.o g++ a.o b.o c.o -ly –o prog a.o: prog.h a.c g++ –c prog.h a.c b.o: prog.h b.c g++ –c prog.h b.c c.o: c.c g++ –c c.c c.c: c.y yacc c.y mv y.tab.c c.c

  12. Review week five lab assignment

  13. Review week five lab assignment

  14. Review week five lab assignment Key Points About Makefile • Makefile recompiles all source files for a project. • Makefile only recompiles files that have been changed. • Bottom up control flow • Rules may be complex shell commands

  15. Review week five lab assignment Key Points About Perl • Dynamic typing • Dynamic allocation of memory for arrays and hash tables • Both procedural and object oriented programming capabilities • Rich third party software and use of modules

  16. Review week five lab assignment • Regular expression (a.k.a. regex or regexp) Is a pattern that describes a certain amount of text. A basic regular expression could be the single character, e.g.: a Jane is a women. It will match the first occurrence in the string. If succeeding matches are desired, the regex engine must be instructed to do so.

  17. Review week five lab assignment • Perl Hash table is an unordered set of scalars, accessed by some string value that is associated with each scalar. %colormap=( “12” => “gray”, “19” => “black”, “30” => “red”,); %colormap = (“12”, “gray”, “19”, “black”, “30”, “red”);

  18. Review week five lab assignment

  19. Week six expected outcomes Upon successful completion of this module, the student will be able to: • Create makefile scripts for software programs. • Use pattern rules in make files. • Create an effective PowerPoint presentation. • Create make files with multiple targets. • Install software packages on a server.

  20. Next lab assignment Installing software under UNIX is not always straightforward and easy. System administrators must be familiar with the layout of the file system. During a software installation, the possibility exists that the system could panic and/or have a hard disk failure.

  21. Next lab assignment Installation Software Package Methods Package manager - What are the tasks of a package manager? - The version of UNIX dictates which package manager will be used. - Many Linux versions utilize the Debian Package Manager. Manual - The utilization of makefiles or shell scripts to automate the install as much as possible. - On occasion, the installation of software is done by sending the source code to the site. - What steps are required to install a new software version? - How is a “configure” script utilized?

  22. Next Lab Assignment shell Assembler Kernel Firmware Hardware

  23. Break-out problems • touch command • dot command • dot dot command • What function does the makefile provide a project? • What are the two parts of a dependency rule? • What language is used for writing makefile rules? • What two methods are used for installing software packages? • What is a regular expression • American National Standard Institute (ANSI)

  24. Upcoming deadlines • Mid-Term review (True/False, Multiple choice, scripts, and on-liners) • Mid-term exam dates June 8 - 13. • makefile Exercise, 6-2 is due June 14. Create the five files referred to in Lab Assignment 6-1. • Programming Assignment 1, 6-1 is due June 21. • Installation Exercise, 8-1 is due June 28.

  25. Questions and answers • Questions • Comments • Concerns • Are there questions regarding the mid-term outline? • After class I will help students with their scripts.

More Related