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


SP Week 02 Assignment #1: Assignment Script

Copy from demos:

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


Decrypt file SP-WEEK02.tar.xz.asc

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


Extract TARBALL

tar xfv SP-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_SP_Basic_Check.sh

bash 01_SP_Version_Check.sh


Check RESULT

cd $HOME/SP_RESULT/W02/
ls -al


UPDATE

bash $HOME/.doUPDATE.sh




© 2024-2024 --- C. BinKadal --- Revision: Wed 20 Nov 2024 07:00.