Add wget2 and make it the default in the command line.

This commit is contained in:
Wojciech A. Koszek
2015-10-06 00:23:48 -07:00
parent 2b4020a443
commit 767beae465
2 changed files with 10 additions and 0 deletions

View File

@ -30,3 +30,4 @@ alias la="ls -la"
alias debian="/var/packages/debian-chroot/scripts/start-stop-status chroot"
alias screen="env TERM=xterm screen"
alias wget="/root/synology/wget2"

9
wget2 Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env python
import urllib2, sys
urlstr = sys.argv[1]
fname = urlstr.split('/')[-1]
response = urllib2.urlopen(urlstr)
f = open(fname, "w")
f.write(response.read())
f.close()
print "written " + fname