Blob


1 #!/usr/local/plan9/bin/rc
3 whatis '*'
4 if(! ~ $#* 2){
5 echo 'usage: netput system path' >[1=2]
6 exit usage
7 }
9 t=/tmp/netget.$pid.$USER
10 fn sigexit { rm -f $t }
12 cat >$t
13 if(! echo put $t $2 | sftp -b - $1 >/dev/null)
14 exit 1
15 exit 0