Sign in
plan9port
/
plan9
/
32c6e78c6c4c13b63d8dc30aa395cfcc6e686c0a
/
.
/
src
/
cmd
/
netfiles
/
netfileput
blob: c8a0ee3f45005b27f2a1c4254272ceab64823722 [
file
] [
log
] [
blame
]
#!/usr/local/plan9/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