Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in $script_name
- do
- echo -en "running the script - $it - "
- exec 3>&1 4>&2
- var=$( { time /tmp/scripts/$i 1>&3 2>&4; } 2>&1) # Captures time only
- exec 3>&- 4>&-
- echo "$var"
- done
- running the script - Verify_disk.bash - 1.42
- running the script - Verify_yum_list.bash - 10.49
- running the script - Verify_size.bash - 2.93
- running the script - Verify_mem_size.bash - 0.71
- running the script - Verify_disk_size.bash - 2.41
- running the script - Verify_wdisk.bash - 1.63
- running the script - Verify_cpu.bash - 0.74
- running the script - Verify_disk.bash - 1.42
- running the script - Verify_yum_list.bash - 10.49
- running the script - Verify_size.bash - 2.93
- running the script - Verify_mem_size.bash - 0.71
- running the script - Verify_disk_size.bash - 2.41
- running the script - Verify_wdisk.bash - 1.63
- running the script - Verify_cpu.bash - 0.74
Add Comment
Please, Sign In to add comment