Presentation is loading. Please wait.

Presentation is loading. Please wait.

V2012.13. 2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 13 Topics: Website Help Hyland Field Trip Review Coding Video.

Similar presentations


Presentation on theme: "V2012.13. 2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 13 Topics: Website Help Hyland Field Trip Review Coding Video."— Presentation transcript:

1 V

2 2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 13 Topics: Website Help Hyland Field Trip Review Coding Video –First Coding Session Linux Scripts Review

3 3 Avon High School Tech Crew Website Help Meeting with Blessing House on 3/14 –http://www.blessinghouse.org/http://www.blessinghouse.org/ –There are similar organizations like that they are willing to use a guides or ideas What we are trying to accomplish: –Newer look and feel –Easy to maintain –Easy to add new content

4 4 Avon High School Tech Crew Hyland Field Trip Hyland Field Trip Review –Your thoughts? Culture and environment –Was it worthwhile? What did you learn during the mentoring session? Donation!

5 5 Avon High School Tech Crew Video: What Most Schools Don’t Teach …

6 6 Avon High School Tech Crew Your Opportunity …

7 7 Avon High School Tech Crew Interested …? First Session –Nine Weeks Exercises, Assignments What You’ll Learn –HTML Basics –CSS We’ll Use Code Academy –http://www.codecademy.com/learnhttp://www.codecademy.com/learn –http://www.codecademy.com/tracks/afterschool-semester1http://www.codecademy.com/tracks/afterschool-semester1

8 8 Avon High School Tech Crew Scripting Review Intro to Linux Review –Scripts/scripting

9 9 Avon High School Tech Crew Create Your First Script Open a text editor –Menu->Accessories->gedit Scripts always begin with: #! /bin/bash Save your script (date.sh) Make the script executable $ chmod +x date.sh Run your script $./date.sh

10 10 Avon High School Tech Crew Create Your First Script Output $./date.sh Fri Mar 8 13:27:05 EST 2013

11 11 Avon High School Tech Crew Create Your First Script Your Challenge: –Let’s add some features Display only the date Display the Day

12 12 Avon High School Tech Crew Create Your First Script

13 13 Avon High School Tech Crew Create Your First Script (date.sh) Output $./date.sh Today's date is: March 8 The day of the week is: Friday The year is: 2013 The complete date is: Friday, March 8, 2013

14 14 Avon High School Tech Crew Create Your First Script (date.sh) #!/bin/sh echo -n "Today's date is: "; date +"%B %-d" echo -n "The day of the week is: "; date +"%A" echo -n "The year is: "; date +"%Y" echo -n "The complete date is: "; date +"%A, %B %-d, %Y"

15 15 Avon High School Tech Crew Script to Display Memory (mem.sh) #! /bin/bash # Total memory space details echo "Memory Space Details" free -t -m | grep "Total" | awk '{ print "Total Memory space : "$2 " MB"; print "Used Memory Space : "$3" MB"; print "Free Memory : "$4" MB"; }' echo "Swap memory Details" free -t -m | grep "Swap" | awk '{ print "Total Swap space : "$2 " MB"; print "Used Swap Space : "$3" MB"; print "Free Swap : "$4" MB";


Download ppt "V2012.13. 2 Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 13 Topics: Website Help Hyland Field Trip Review Coding Video."

Similar presentations


Ads by Google