#!/bin/bash

export TOR_LOG="/var/log/tor/log"

cmd_item_list=(
"--has-consensus"
"--current-time-in-valid-range"
"--show-valid-after"
"--show-valid-until"
"--show-middle-range"
"--tor-cert-lifetime-invalid"
"--tor-cert-valid-after"
)

for cmd_item in ${cmd_item_list[@]} ; do
   echo "cmd_item: /usr/local/lib64/helper-scripts/anondate $cmd_item $@"
   output="$(/usr/local/lib64/helper-scripts/anondate $cmd_item $@)"
   exit_code="$?"
   echo "output: $output"
   echo "exit_code: $exit_code"
   echo "----------"
done
