X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/blobdiff_plain/8233253bc3fe8f2f4216143a5a5e3ec1bf00db59..refs/heads/develop:/exec/photograph/update_temp_photograph.sh?ds=sidebyside diff --git a/exec/photograph/update_temp_photograph.sh b/exec/photograph/update_temp_photograph.sh old mode 100644 new mode 100755 index d531dd9..5b380c3 --- a/exec/photograph/update_temp_photograph.sh +++ b/exec/photograph/update_temp_photograph.sh @@ -9,7 +9,9 @@ temp_dir="/dev/shm"; # default iso_date="$(date +%Y%m%dT%H%M%S%z)"; #iso_date_ns="$(date +%Y%m%dT%H%M%S.%N%z)"; device_hostname="$(hostname)"; -nfg_base_dir="../../"; # root directory of ninfacyzga-1 git repo + +script_path="$(dirname "$(realpath -s "$0")")"; # Get script dir Ref/Attrib: https://stackoverflowcom/questions/4774054/ +nfg_base_dir="$script_path/../../"; # root directory of ninfacyzga-1 git repo nfg_unitproc_path="$nfg_base_dir"/exec/unitproc; sleep_rand_path="$nfg_base_dir"/exec/unitproc/sleepRand.py; PATH="$nfg_unitproc_path:$PATH"; # include unitprocess nfg executables @@ -280,7 +282,7 @@ main() { while [[ $SECONDS -lt "$script_ttl" ]]; do # Capture new photograph try update_temp_file; - try python3 "$sleep_rand_path" --upper 3600.0 10.0; + try python3 "$sleep_rand_path" --upper 3600.0 60.0; done; #===END main loop=== };