Last active
May 2, 2018 20:51
-
-
Save kpietralik/7bd6cff5c644496b8dec34dc809d3443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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