CBKADAL
OSP Weekly Assignments
C. BinKadal --- Sendirian, Berhad.


OS Week 02 Assignment #5: Assignment Script

Copy from demos:

TARBALL=WEEK02.tar.xz.asc
TARDIR=$HOME/git/demos/WEEK
if [ -d $TARDIR/ ] ; then
  cd $TARDIR/
  git pull
  mkdir -pv $HOME/mywork/
  cd $HOME/mywork/
  cp -v $TARDIR/$TARBALL .
  ls -al
else
  echo "ERROR: no $TARDIR directory!"
fi


Decrypt file WEEK02.tar.xz.asc

  • The passphrase/password will be announced at SCELE at the beginning of the week.
gpg -o WEEK02.tar.xz -d WEEK02.tar.xz.asc


Extract TARBALL

tar xfv WEEK02.tar.xz
cd WEEK02/
ls -al


Check Scripts

for II in [0-9][0-9]* ; do
    echo ""
    echo "= === ==== FILE $II..."
    echo "= === ==== ==== ==== ==== ==== ==== ===="
    cat  "$II"
    sleep 2
done


Run Scripts

bash 00-Basic-Check.sh

bash 01-Version-Check.sh


Check RESULT

cd $HOME/RESULT/W02/
ls -al

The result will be similar to the following. Check if there are error messages inside these files:

  • WEEK02-00-BASIC.txt
ZCZC 144FC55 WEEKSQ 02 00
ZCZC 144EB34 VERSUM 20:BA1506DC 20:BA1506DC
ZCZC 144640F VERINC 45:33F3C310 45:33F3C310
ZCZC 14445AC SCRIPT # REV20: Thu 15 Feb 2024 07:00
ZCZC 1449163 XCHECK HOST yforku USER yforku GROUP yforku HOME /home/yforku/ ARCH aarch64 NPROC 4
ZCZC 144F7E3 VERDSK 23G 23G 656F47A0B4F4 656F47A0B4F4
ZCZC 144F80C CMOUN1
ZCZC 1443508 CMOUN2
ZCZC 1445368 VERLNX 6.1.0-18-arm64
ZCZC 144E7F9 DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 144A98F CHDIR1 RESULT YES
ZCZC 1444C30 CHDIR2 mydemo YES
ZCZC 144B630 CHDIR3 mywork YES
ZCZC 144757D CHDIR4 git/os241/TXT/ YES
ZCZC 1445CA1 CHDIR5 git/demos/ YES
ZCZC 144142E RESULT ===== RESULT IN /home/yforku/RESULT/W02/WEEK02-00-BASIC.txt =====

  • WEEK02-01-VERSION.txt
OK:    Apt       2.6.1  >= 2.6
OK:    Bash      5.2.15 >= 5.2
OK:    Binutils  2.40   >= 2.40
OK:    Bison     3.8.2  >= 3.8
OK:    Coreutils 9.1    >= 9.1
OK:    Diffutils 3.8    >= 3.8
OK:    Dpkg      1.21.22 >= 1.21
OK:    Findutils 4.9.0  >= 4.9
OK:    Fusermount 2.9.9  >= 2.9
OK:    Gawk      5.2.1  >= 5.2
OK:    GCC       12.2.0 >= 12.2
OK:    GCC (C++) 12.2.0 >= 12.2
OK:    Git       2.39.2 >= 2.39
OK:    Gnupg     2.2.40 >= 2.2
OK:    Grep      3.8    >= 3.8
OK:    Gzip      1.12   >= 1.12
OK:    Lynx      2.9.0dev >= 2.9
OK:    M4        1.4.19 >= 1.4.19
OK:    Make      4.3    >= 4.3
OK:    Patch     2.7.6  >= 2.7
OK:    Perl      5.36.0 >= 5.36
OK:    Python    3.11.2 >= 3.11
OK:    Rsync     3.2.7  >= 3.2
OK:    Sed       4.9    >= 4.9
OK:    Tar       1.34   >= 1.34
OK:    Texinfo   6.8    >= 6.8
OK:    Vim       9.0    >= 9.0
OK:    Xz        5.4.1  >= 5.4
OK:    Linux Kernel 6.1.0 >= 6.1
OK:    Linux Kernel supports UNIX 98 PTY
Aliases:
OK:    awk  is GNU
OK:    yacc is Bison
OK:    sh   is Bash
Compiler check:
OK:    g++ works
ZCZC 1492E4D WEEKSQ 02 01
ZCZC 149D10E VERSUM 79:B921D09F 79:B921D09F
ZCZC 149BFAF VERINC 45:33F3C310 45:33F3C310
ZCZC 149DC5B SCRIPT # REV19: Wed 14 Feb 2024 23:00
ZCZC 1490BB0 RESULT ===== RESULT IN /home/yforku/RESULT/W02/WEEK02-01-VERSION.txt =====

  • WEEK02-DEMO-CHECK.txt
ZCZC E460C14 DEMOCHECK lsbexhJ02lsbexh




© 2024-2024 --- C. BinKadal --- Revision: 0049---14-May-2024.