Guest User

Untitled

a guest
Dec 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. for i in $script_name
  2. do
  3. echo -en "running the script - $it - "
  4. exec 3>&1 4>&2
  5. var=$( { time /tmp/scripts/$i 1>&3 2>&4; } 2>&1) # Captures time only
  6. exec 3>&- 4>&-
  7.  
  8. echo "$var"
  9. done
  10.  
  11. running the script - Verify_disk.bash - 1.42
  12. running the script - Verify_yum_list.bash - 10.49
  13. running the script - Verify_size.bash - 2.93
  14. running the script - Verify_mem_size.bash - 0.71
  15. running the script - Verify_disk_size.bash - 2.41
  16. running the script - Verify_wdisk.bash - 1.63
  17. running the script - Verify_cpu.bash - 0.74
  18.  
  19. running the script - Verify_disk.bash - 1.42
  20. running the script - Verify_yum_list.bash - 10.49
  21. running the script - Verify_size.bash - 2.93
  22. running the script - Verify_mem_size.bash - 0.71
  23. running the script - Verify_disk_size.bash - 2.41
  24. running the script - Verify_wdisk.bash - 1.63
  25. running the script - Verify_cpu.bash - 0.74
Add Comment
Please, Sign In to add comment