Skip to content

Instantly share code, notes, and snippets.

@kpietralik
Last active May 2, 2018 20:51
Show Gist options
  • Save kpietralik/7bd6cff5c644496b8dec34dc809d3443 to your computer and use it in GitHub Desktop.
Save kpietralik/7bd6cff5c644496b8dec34dc809d3443 to your computer and use it in GitHub Desktop.
#! /bin/sh
echo "--- Start"
timestamp() {
date +"%T"
}
timestamp
timestamp2=$(date +%s)
echo $timestamp2
echo "--- Reading data"
/mnt/Main/Random/temp.sh > /mnt/Main/Random/temp.out
templog=`cat /mnt/Main/Random/temp.out`
echo "--- Sending data"
url="__URL__"
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST $url -d "$templog"
echo "--- End"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment