release_temp.sh 258 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh

file=$1
host=free.ethz.ch
dir=public_html/temp/
url="http://people.inf.ethz.ch/~nicosc/temp"

[ -z "$file" ] && exit 1

bfile="$(basename "$file")"

scp "$file" "${host}:$dir"
ssh $host "chmod a+r $dir/$bfile"

echo "Pre-released ${url}/${bfile}"