getviaphone: download using phone
This commit is contained in:
parent
536ae29b60
commit
1ed954976c
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
|
Loading…
x
Reference in New Issue
Block a user