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