Skip to content

Instantly share code, notes, and snippets.

@forresty
forresty / rwget.sh
Created October 16, 2011 15:44
rwget: wget through ssh tunnel
#!/usr/bin/env sh
# TODO: replace your-hostname-here.com and path_to_your_rwget_folder
if [ $# -lt 1 ] ; then
echo "usage: rwget URL"
exit 1
fi
filename=`ssh your-hostname-here.com URL=$1 'bash -s' << 'ENDSSH'
cd path_to_your_rwget_folder