getviaphone: download using phone

This commit is contained in:
Mike Small 2020-09-27 14:42:46 -04:00
parent 536ae29b60
commit 1ed954976c
2 changed files with 9 additions and 0 deletions

View File

@ -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
View 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