From dd512edb052d633b1dca7d6bdca8e88db4483195 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Thu, 13 Sep 2012 11:26:15 -0500 Subject: [PATCH] added web_pull --- web_pull.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 web_pull.sh diff --git a/web_pull.sh b/web_pull.sh new file mode 100755 index 0000000..28a7ec5 --- /dev/null +++ b/web_pull.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# this will pull a file via wget + +TMPDIR=$(/bin/mktemp -d) +TMPFILE=$(/bin/mktemp) + +# read line to pull file + +echo "Location of the file" +read web_location_of_file + +# pull file here +pull_file { + TMPDIR=$(/bin/mktemp -d) + cd TMPDIR + wget $web_location_of_file +} + +pull_file() + +# output file here