acep-uaf / camio-meter-streams

0 stars 0 forks source link

Replace downloaded history file with temp file #97

Closed nicolemah99 closed 3 months ago

nicolemah99 commented 3 months ago

Instead of downloading CHISTORY.TXT, create a temp file using mktemp -d /var/tmp/NAME_XXXXX

#!/bin/bash

TEMPFILE=$(mktemp -d /var/tmp/NAME_XXXXX)
echo "This is temporary data" > "$TEMPFILE"
cat "$TEMPFILE"
rm "$TEMPFILE"