diff --git a/senddir b/senddir new file mode 100755 index 0000000..5d5a6db --- /dev/null +++ b/senddir @@ -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