Sign in
plan9port
/
plan9
/
ca30274bd90f09b6d19d36b87278fdb40efddada
/
.
/
bin
/
netfileput
blob: 9a5a396d99382b0c7537e0be3282850e19827ac1 [
file
] [
log
] [
blame
]
#!/usr/local/plan9/bin/rc
whatis
'*'
if
(!
~
$
#* 2){
echo
'usage: netput system path'
>[
1
=
2
]
exit
usage
}
t
=
/tmp/
netget
.
$pid
.
$USER
fn sigexit
{
rm
-
f $t
}
cat
>
$t
if
(!
echo put $t $2
|
sftp
-
b
-
$1
>
/dev/
null
)
exit
1
exit
0