uli101.a2.start

uli101.a2.start - # # DO NOTE REMOVE OR CHANGE THIS BLOCK #...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
############################################################################### # DO NOTE REMOVE OR CHANGE THIS BLOCK # ASSIGNMENTS COMPLETED WITHOUT THIS BLOCK INTACT WILL NOT BE GRADED # # ULI101 - WINTER 2010 # ASSIGNMENT 2 BY: Ming Zhang # mzhang66@matrix.senecac.on.ca # # BIGBROTHER COMMAND VERIFIES THAT YOU COMPLETED THE WORK INDEPENDENTLY # BY RECORDING YOUR PROGRESS AND COLLECTING STATISTICAL DATA # IF YOU DELETE OR DAMAGE THE COMMAND BELOW BY ACCIDENT, YOU CAN RETRIEVE # THE ORIGINAL FILE BY ISSUING THE ASSIGNMENT START COMMAND AGAIN bigbrother 908d1fd93c27c145454d1627b3129aca96d01d97 ############################################################################### ### TO DO: Check if source directory is given as parameter, exit status 1 on error ### TO DO: Check if source is a directory, exit istatus 2 on error # Check the source directory is absolute or relative-to-home, exit on error echo "$1" | grep "^/" > /dev/null if [ "$?" -ne 0 ] then echo "Source must be an absolute or relative-to-home path"
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2010 for the course CTY ULI101 taught by Professor Mark during the Spring '10 term at Seneca.

Page1 / 2

uli101.a2.start - # # DO NOTE REMOVE OR CHANGE THIS BLOCK #...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online