#!/builddir/build/BUILD/plan9port-0_20260711git.337c6ac-build/plan9port-337c6acbfed51d8d9f08598c6cd398f53abcca7d/bin/rc

if(! ~ $#* 2){
	echo 'usage: netfileput system path' >[1=2]
	exit usage
}

f=putfile

. netfilelib.rc $1

fn putfile{
	cat >$t
	echo put $t $2 | runsftp -e $1
}
fn putfile9p{
	if(! 9p write $1/$2)
		exit 1
}

$f $1 $2
exit 0

