#!/bin/sh
# one liner to check and log to check exec time
# between 2 scripts script.pl and script.pl.new

script1='/path/to/script.pl';
script2='/path/to/script.pl.new';
log=/home/hipo/script_exec_time.log; ip=198.18.11.123; loop_cnt=1000; for i in $(seq 1 $loop_cnt); do echo "$(date) check_oasis $ip" | tee -a $log; ( time $script1 -H $ip  ) 2>&1 | tee -a $log; echo '############' | tee -a $log; sleep 10; echo "$(date) check_oasis.new" | tee -a $log; ( time $script2 -H $ip )  2>&1 | tee -a $log; done
