getviaphone: download using phone
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,7 +1,9 @@
|
||||
check:
|
||||
perl -wc frfac
|
||||
perlcritic frfac
|
||||
ksh93 -n getviaphone
|
||||
|
||||
install:
|
||||
sudo install -o root -g wheel -m 0755 -d /usr/local/bin
|
||||
sudo install -o root -g wheel -m 0555 frfac /usr/local/bin
|
||||
sudo install -o root -g wheel -m 0555 getviaphone /usr/local/bin
|
||||
|
||||
7
getviaphone
Normal file
7
getviaphone
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Download a file via the phone.
|
||||
|
||||
u=$1
|
||||
f=${u%%\?*}
|
||||
f=${f##*/}
|
||||
ssh phone "cd downloads/tmp;wget -O- $u" > $f
|
||||
Reference in New Issue
Block a user