Hi There,
can someone tell me what let and log command for in here ?
can someone tell me what let and log command for in here ?
Code:
if [ $result -eq 1 ]; then
let "max_run_sec = $var * 60"
let "actual_start_time = $(date +%s)"
let "expected_end_time = $actual_start_time + $max_run_sec"
log "TIMENOW : $actual_start_time"
log "MAXEXEC : $max_run_sec secs"
log "ENDTIME : $expected_end_time"
else
log "ENDTIME : Not specified"
fi