1
0
Fork 0

Add senddir (I missed it earlier\!)

This commit is contained in:
Starbeamrainbowlabs 2017-01-15 09:29:01 +00:00
parent 20609abfe6
commit be1cbc7a32
1 changed files with 10 additions and 0 deletions

10
senddir Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo Send an entire directory over the network.
echo Usage:
echo " senddir directoryname listen_port_number"
exit
fi
tar cf - $1 | gzip | nc -l $2