From f17c0e310014f1c26b11d1896d0aecc3b92fe6d3 Mon Sep 17 00:00:00 2001 From: Bo Ørsted Andresen Date: Tue, 27 Feb 2007 22:24:11 +0000 Subject: Initial import. Version 1. --- wgetpaste | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 wgetpaste diff --git a/wgetpaste b/wgetpaste new file mode 100755 index 0000000..f2976ea --- /dev/null +++ b/wgetpaste @@ -0,0 +1,79 @@ +#!/bin/bash +# A Script that automates pasting to pastebin(s).. +# based on http://floyd-n-milan.blogspot.com/2006/11/bash-script-to-post-on-pastebins.html +# but uses wget instead of curl and supports only rafb.net +###################################################################### + +showusage() { + cat 1>&2 <&1 | sed -n 's|^.*Location:\ \(http://rafb.net/p[^\ ]\+\).*$|\1|p') + +if [[ "${url}" == "http://rafb.net/p/toofast.html" ]]; then + echo "You must wait at least 10 seconds between each paste! Try again in 10 seconds." + exit 1 +fi + +echo "Your paste can be seen here: ${url}" +exit 0 -- cgit v1.2.3