ModernOS:2014:Lab1

Allikas: Kursused
Mine navigeerimisribale Mine otsikasti

LAB Bash & Powershell

Deadline 3 dets 2014

Choshe acording to your skils:


Write script in powershell and in bash to do :


Basic

  • Archive only new or modified files from directory to archive directory
  • Archive it to archive directory by compressing each file separately (with zip, or tar or etc) and naming the archive OriginalFileNameDDMMYY.extension where
   OriginalFileName is the original file name
   DD is Two-digit day, e.g. 02
   MM  Two-digit month, e.g. 04
   YY  Two-digit year, e.g. 96
   extension is the extension for the arcive, eg tar.gz  ,.zip etc..


Advanced

  • Monitor directory for changes
  • Archive files that apear in directory to archive directory
  • Archive it to archive directory by compressing each file separately (with zip, or tar or etc) and naming the archive OriginalFileNameDDMMYY.extension where
   OriginalFileName is the original file name
   DD is Two-digit day, e.g. 02
   MM  Two-digit month, e.g. 04
   YY  Two-digit year, e.g. 96
   extension is the extension for the arcive, eg tar.gz  ,.zip etc..


Pack scripts and mail modernos@ttu.ee

Include your student nuber

Subject sould read : Lab2, ModernOS, Student number

Demonstrate your solution in class.