# Script Metadata
scriptName="bklog"; # Define basename of script file.
-scriptVersion="0.1.2"; # Define version of script.
+scriptVersion="0.1.4"; # Define version of script.
scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define wesite hosting this script.
scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN
scriptHostname=$(hostname); # Save hostname of system running this script.
cat <<'EOF'
USAGE:
cmd | bklog [ options ]
- echoerr
+
OPTIONS:
-h, --help
Display help information.
-B, --script-ttl [time element string]
Specify custom script time-to-live in seconds (default: "day")
Valid values: "day", "hour"
- echoerr
+
EXAMPLE: (bash script lines)
$ gpspipe -r | /bin/bash bklog -v -e -c -z "UTC" -t "/dev/shm" \
-r age1mrmfnwhtlprn4jquex0ukmwcm7y2nxlphuzgsgv8ew2k9mewy3rs8u7su5 \
-R ~/.config/bklog/recipients -w ".nmea" -b 300 -B "day" \
-o ~/Sync/Logs -l "location" \
-p "gpsbabel -i nmea -f - -o gpx -F - " ".gpx" \
- -p "gpsbabel -i nmea -f - -o kml -F - " ".gpx"
+ -p "gpsbabel -i nmea -f - -o kml -F - " ".kml"
EOF
} # Display information on how to use this script.
showVersion() {