Blob


1 #!/usr/local/plan9/bin/rc
3 if(! ~ $#* 2){
4 echo 'usage: netfileput system path' >[1=2]
5 exit usage
6 }
8 f=putfile
10 . netfilelib.rc $1
12 fn putfile{
13 cat >$t
14 echo put $t $2 | runsftp -e $1
15 }
16 fn putfile9p{
17 if(! 9p write $1/$2)
18 exit 1
19 }
21 $f $1 $2
22 exit 0