summaryrefslogtreecommitdiffstats
path: root/syrep-chub-client
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-11-12 22:19:36 +0000
committerLennart Poettering <lennart@poettering.net>2003-11-12 22:19:36 +0000
commitdc6a404a45e8d270116d3c39ceeb2cc7c2c0d539 (patch)
tree8dc27f488d3a5ee22a6f79752f9b9dad9ef36a73 /syrep-chub-client
parent50b012103fd006275a1ee11c58697f2623877f7b (diff)
add client, fix size
git-svn-id: file:///home/lennart/svn/public/syrep-chub/trunk@8 4c8cc7d0-f3cb-0310-ad32-ddc431b48844
Diffstat (limited to 'syrep-chub-client')
-rwxr-xr-xsyrep-chub-client13
1 files changed, 13 insertions, 0 deletions
diff --git a/syrep-chub-client b/syrep-chub-client
new file mode 100755
index 0000000..0db57bb
--- /dev/null
+++ b/syrep-chub-client
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+SOURCE="$1"
+if [ -z "$SOURCE" ] ; then
+ echo "You need to specify a file to upload" > /dev/stderr
+ exit 1
+fi
+
+URL="https://seth.intheinter.net/lennart/syrep-chub/upload.cgi"
+DATE=$(date '+%Y%m%d%k%M%S')
+FNAME="$HOSTNAME-$DATE"
+
+exec curl -f -s -k -T "$SOURCE" "$URL?$FNAME" > /dev/null