NOTE:
The scripts and programs in this directory may have had a ".txt" suffix
added, to make sure that they are treated as text when your browser
downloads them. You may need to remove the ".txt" suffix to compile
or run them on your own computer.
Feb 14 13:48 2005CGI_script.txtBuilding a CGI Script on Unix Jan 4 13:22 2005README.txtREADME - Index to this NET2003 directory Jan 4 17:50 2005arguments_and_options.txtOptions and Arguments on Unix Command Lines Jan 11 14:57 2005caddy.txtDrive caddy jumper issues - /dev/hda /dev/hdb Mar 31 10:13 2005chkconfig.txtThe chkconfig command and SysV start-up scripts Jan 30 09:15 2005collate_order.txtCollate order - making GLOB patterns and sorting work Jan 29 05:58 2005command_substitution.txtCommand Substitution - $(unix command) Jan 4 16:42 2005course_linux_server.txtThe Course Linux Server Jan 4 16:29 2005datsubmit.txtUsing the datsubmit command Jan 29 05:06 2005deep_nesting.txtAvoiding deeply nested IF statements (Structured/Un-Structured) Nov 1 13:08 2004exit_status.txtReturn Code, Exit Status, test, if, and while Feb 12 04:39 2011file_system.txtUnix/Linux File System - (correct explanation) Jan 4 17:07 2005file_transfer.txtFile transfer between machines Apr 17 09:55 2005finaltest3directions.txtDirections and preparing for Test #3 (Final Exam) [First DRAFT] Jan 23 16:58 2005finding_files.txtSearching for and finding files by name Jan 20 02:10 2005glob_patterns.txtGLOB patterns (wildcard pathname matching) Jan 4 17:18 2005home_and_HOME.txtDirectories: current, HOME, and /home Jan 4 17:35 2005how_to_print.txtHow to print things in NET2003 Feb 16 09:59 2005http_session.txtsample HTTP session using the "nc" command Jan 4 16:06 2005internet_basics.htmlInternet Basics Jan 25 21:56 2005job_control.txtShell background/foreground job control Feb 2 08:43 2005knoppix_booting.txtUsing the Knoppix Linux CDROM Jan 29 05:35 2005less_code.txtLess Code is Better Code - stop cutting and pasting identical code Oct 20 10:50 2005links_and_inodes.htmlHard links and Unix file system nodes (inodes) Jan 26 02:10 2005man_page_RTFM.txtSearching for items in the Unix manual pages (RTFM) Mar 24 06:00 2005mandrake_config.txtMandrakelinux Configuration - making the server useful using urpmi Mar 15 00:00 2005mandrake_install.txtMandrakelinux Install - fdisk partitioning, booting GRUB, etc. Mar 15 06:02 2005mandrake_network.txtMandrakelinux Network Repair - if your Mini system has no networking Jan 23 19:38 2005miscellaneous.txtMiscellaneous Unix Facts Apr 6 09:36 2005mobile.txtLinux configuration on a removable disk Feb 16 09:45 2005nntp_session.txtsample NNTP session using the "nc" command Sep 27 05:47 2011pathnames.txtUnix/Linux Pathnames Jan 10 03:02 2005permissions.txtUnix Permissions Jan 17 05:12 2005practiceCommands_1.txtPractice Unix/Linux Questions #1 Mar 4 01:52 2005practiceCommands_2.txtPractice Unix/Linux Questions #2 Mar 2 09:13 2005practiceCommands_3.txtPractice Unix/Linux Questions #3 Nov 9 01:08 2004quick_tests.txtReturn Code, Exit Status, ||, &&, test, and if Jan 17 03:25 2005quotes.txtUnix/Linux Shell Command Line Quoting Feb 5 16:54 2011redirection.txtUnix Shell I/O Redirection (including Pipes) Feb 7 00:22 2005script_checklist.txtShell Script Checklist - a list of things to verify in your shell scripts Mar 2 08:45 2005script_practice1.txtPractice Script #1 Specifications Mar 2 08:48 2005script_practice2.txtPractice Script #2 Specifications Mar 2 09:33 2005script_practice2answer.txtTwo sample solutions to script_practice2.txt Mar 4 01:10 2005script_practice3.txtPractice Script #3 Specifications Mar 4 01:15 2005script_practice3answer.txtScript Practice #3 answer - 71 marks Mar 4 01:10 2005script_practice4.txtPractice Script #4 Specifications Mar 4 01:15 2005script_practice4answer.txtScript Practice #4 answer - 69 marks Feb 27 07:05 2005script_style.txtShell Script Programming Conventions and Style Mar 16 00:00 2005server_admin.txtLinux Server Administration - reboot/shutdown, backups Jan 4 17:41 2005shell_prompt.txtSetting the BASH shell prompt Feb 15 13:19 2005shell_read.txtReading stdin into shell variables - read, EOF, and exec Jan 26 09:42 2005shell_script_execution.txtHow a Shell Script is "Executed" Jan 25 22:01 2005shell_variables.txtShell Variables you should know (including $* and $@) Feb 16 09:30 2005smtp_session.txtsample SMTP session using the "nc" command Jan 4 18:10 2005startup_files.txtSetting up Startup Files: .bash_profile and .bashrc Mar 16 16:35 2005t111_server.txtT111/114/115 Server Available Jan 7 06:34 2005terminal.txtUsing telnet/ssh Terminal emulators Jan 30 15:36 2005umask.txtUmask and Permissions Feb 28 07:14 2005unix_command_list.txtBasic Unix/Linux Command List Jan 23 14:47 2005unix_shell.txtThe Unix/Linux Shell Jan 4 17:43 2005vi_basics.txtThe VI (VIM) Editor - Basics
Projects/Labs/Assignments/Exercises (for hand-in)
Jan 10 04:26 2005exercise01.txtExercise #1 for NET2003 due January 10, 2005 Jan 17 09:00 2005exercise02.txtExercise #2 for NET2003 due January 17, 2005 Jan 24 09:16 2005exercise03.txtExercise #3 for NET2003 due January 24, 2005 Feb 7 04:18 2005exercise03_myscript.sh.txtExercise #3 myscript.sh sample solution Jan 26 04:48 2005exercise03_myscript.txtExercise #3 sample output from myscript.sh Jan 31 06:34 2005exercise04.txtExercise #4 for NET2003 due February 3, 2005 Apr 7 13:05 2005exercise04_myscript4.sh.txtDemonstrate data manipulation using Unix pipes Apr 7 13:36 2005exercise04_weather.sh.txtFetch the current Ottawa temperature from the Enviro Canada web site. Feb 7 05:02 2005exercise05.txtExercise #5 for NET2003 due February 15, 2005 Apr 10 12:05 2005exercise05_weather5.sh.txtfetch via WWW the current temperature for a select set of Canadian cities Feb 14 06:38 2005exercise06.txtExercise #6 for NET2003 due February 28, 2005 Apr 21 16:13 2005exercise06_date_cgi.txtThis CGI script displays the date and one passed argument. Apr 21 16:17 2005exercise06_weather6a_cgi.txtThis CGI script displays the Ottawa weather temperature. Apr 21 16:28 2005exercise06_weather6b_cgi.txtThis CGI script displays the temperature for a given city code Feb 28 07:11 2005exercise07.txtExercise #7 for NET2003 due March 1, 2005 May 1 21:16 2005exercise07_partitions.sh.txtOutput a list of partitions and types for a given disk letter Apr 22 16:13 2005exercise07_week7answers.txtassignment label here Mar 4 04:32 2005exercise08.txtExercise #8 for NET2003 due March 7, 2005 Mar 13 21:15 2005exercise09.txtExercise #9 for NET2003 due March 14-21, 2005 Mar 13 21:50 2005exercise10.txtExercise #10 for NET2003 due March 21, 2005 Mar 21 02:38 2005exercise11.txtExercise #11 for NET2003 due March 21, 2005 Apr 22 16:37 2005exercise11_week10answers.txtassignment label here Mar 24 10:02 2005exercise12.txtExercise #12 for NET2003 due March 28/30, 2005 Apr 5 17:26 2005exercise13.txtExercise #13 for NET2003 due April 4/8, 2005 Apr 22 17:25 2005exercise13_week12answers.txtassignment label here
Shell Scripts
Jan 30 20:35 2005argv.sh.txtThis shell script displays the command line arguments. Feb 7 04:18 2005commandline_arguments.sh.txtdemonstrate the use of command line arguments in a script Feb 7 04:18 2005elif.sh.txtSyntax: Feb 7 04:18 2005file_size_classer.sh.txtClassify a file as small, medium, large. Feb 25 03:25 2004iftest1.sh.txtWe don't want the usual output of DIFF on the screen, so we throw it away. Feb 25 03:26 2004iftest2.sh.txtFor a list of numeric comparison operators, see the "test" man page. Feb 25 03:26 2004iftest3.sh.txtString comparison uses "=" not "-eq". Feb 25 03:26 2004iftest4.sh.txtSee the "test" man page for a larger list of file-testing operators. Feb 25 03:27 2004iftest6.sh.txtIssue an error message unless exactly one command line argument is given. Feb 25 03:27 2004iftest7.sh.txtPrint an error if the argument is missing, or is not a file. Nov 15 13:59 2004iftest8.sh.txtSpecifications: Nov 15 13:56 2004iftest9.sh.txtSpecifications: Feb 7 04:18 2005integer_sort.sh.txtread three integers and sort them Feb 7 04:18 2005optional_args1.sh.txtDemonstrate method 1 for prompting for missing command line arguments. Feb 7 04:18 2005optional_args2.sh.txtDemonstrate method 2 for prompting for missing command line arguments. Feb 7 04:18 2005optional_args3.sh.txtDisplay PWD MAIL HOME replaced by optional command line arguments. Feb 7 04:18 2005passwd_string_finder.sh.txtlook for an optional string in the Unix password file Feb 7 04:18 2005path_tester.sh.txtPerform several tests on the first argument to this script. Feb 7 04:18 2005path_validator.sh.txtValidate a single command line argument (file or directory). Mar 2 08:45 2005script_practice1.sh.txtSample solution to script_practice1.txt Feb 7 04:18 2005shellread.sh.txtdemonstrate the use of the shell "read" built-in command Oct 14 17:06 2003showtest.sh.txtThis script runs in "debug" mode (see the -x above). Feb 7 04:18 2005sort_top_five.sh.txtThis scripts sorts a file and displays the top 5 lines. Feb 7 04:18 2005string_compare.sh.txtThis script compares two strings: an argument and stdin. Feb 7 04:18 2005wait_login.sh.txtSyntax: $0 userid Feb 7 04:18 2005weather1.sh.txtA weather script to show the current temperature in Ottawa Feb 7 04:18 2005weather2.sh.txtA weather script to show the current temperature in Ottawa. Feb 17 18:56 2005while1.sh.txtSyntax: $0 (no arguments) Feb 7 04:18 2005while2.sh.txtSyntax: $0 number
Program Source
Sep 20 23:15 2004argv.c++.txtSave this program as: argv.c++ Sep 20 23:15 2004argv.c.txtSave this program as: argv.c Jan 24 02:43 2004stdxxx.c++.txtProduces output on stdout and stderr, prompts and reads from stdin.
Miscellaneous
Jan 24 16:25 2005net2003-05w.pdf Apr 6 03:04 2005text_errata.txtErrors in Advanced Linux Networking by Roderick W. Smith