diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-30 15:45:04 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-30 15:45:04 +0200 |
commit | b9c2ce5b7a2afc82fc70bf66140c8559dcce98c9 (patch) | |
tree | f5f3e2cf9aaa68cf53f8ca97e57bc260aad23b40 /tempfs.sh | |
parent | 103b5a0eec810a91526ee9fda7acd9867780e733 (diff) | |
download | bin-b9c2ce5b7a2afc82fc70bf66140c8559dcce98c9.tar.gz bin-b9c2ce5b7a2afc82fc70bf66140c8559dcce98c9.tar.xz |
added upload script for tempfs.com
Diffstat (limited to 'tempfs.sh')
-rwxr-xr-x | tempfs.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tempfs.sh b/tempfs.sh new file mode 100755 index 0000000..2602b9e --- /dev/null +++ b/tempfs.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#---------------------------------------------------- +# Version: 0.1.0 +# Author: Florian "Bluewind" Pritz <f-p@gmx.at> +# +# Copyright (C) 2009 Florian Pritz +# +# Licensed under GNU General Public License v3 +# (see COPYING for full license text) +# +#---------------------------------------------------- +# Upload file to tempfs and copy URL to cpulboard +#---------------------------------------------------- + +URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | ack 'http://.*/uploadedFiles/[^\s]*?' | sed 's/<\/span>//') + +echo -n $URL | nohup >/dev/null 2>&1 xclip +echo $URL + |