Our legacy site: www.webwob.com   

VUgen scripting methods (page 3)

This page will cover more BASH scripting methods, following on from the legacy site pages.

     LoadRunner CI/CD      *_LR_CI_*      LR_CI_+      Email_out      Email_in      Cookies 1      TUTORIAL      sprintf      debug      VUgen      Kill -9      disk space      AWS S3      dig (DNS++)      substitute      curl with timings      LR_Jenkins_graphs     


Areas covered on this page

Step 1: LIVE disk space monitor

Step 2: Copy over directories to a new location

This BASH technique gives you a live disk space monitor...

Calling command:  (You can put this call inside any working BASH script):

  /cygdrive/c/cygwin64/bin/mintty.exe bash -c ". /cygdrive/I/working/df_loop.sh; read -p \"Press enter to close this window.\"" &

Inside df_loop.sh:

  echo start = $START
  echo end = $END
  while [[ $i -le $END ]]
      echo ---------------------------------------
      #mydate=$( date +%Y-%m-%d_%H-%M-%S )
      mydate=$( date +%H-%M-%S )
      echo TIME is now: $mydate
      df -h
      echo ---------------------------------------
      ((i = i + 1))
      sleep 10


Copy over directories to a new location

Preserve links. Don't overwrite existing files.

  cp -ndpR <source> <destination>
  -p same as --preserve=mode,ownership,timestamps
  -n, --no-clobber do not overwrite an existing file
  -d same as --no-dereference --preserve=links
  -R, -r, --recursive copy directories recursively