Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
added web_pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jjasghar committed Sep 13, 2012
1 parent 86ae9b8 commit dd512ed
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions web_pull.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dd512ed

Please sign in to comment.