diff options
author | rsc <devnull@localhost> | 2005-03-20 23:39:48 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-03-20 23:39:48 +0000 |
commit | baf7825e82bac6f37860c6ebe26a13651fe405fd (patch) | |
tree | 97f5f3e225125d0dd6f4e77e87a90a5fe4ff82f7 /src/cmd/netfiles/netfileput | |
parent | 80097b018284589b1a3dd8d59549bbf7d3c67e8b (diff) | |
download | plan9port-baf7825e82bac6f37860c6ebe26a13651fe405fd.tar.gz plan9port-baf7825e82bac6f37860c6ebe26a13651fe405fd.tar.bz2 plan9port-baf7825e82bac6f37860c6ebe26a13651fe405fd.zip |
update usage, use sftp -b /dev/stdin
Diffstat (limited to 'src/cmd/netfiles/netfileput')
-rwxr-xr-x | src/cmd/netfiles/netfileput | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/netfiles/netfileput b/src/cmd/netfiles/netfileput index baa3eb12..7b90124d 100755 --- a/src/cmd/netfiles/netfileput +++ b/src/cmd/netfiles/netfileput @@ -1,7 +1,7 @@ #!/usr/local/plan9/bin/rc if(! ~ $#* 2){ - echo 'usage: netput system path' >[1=2] + echo 'usage: netfileput system path' >[1=2] exit usage } @@ -15,7 +15,7 @@ fn sigexit { rm -f $t } fn putfile{ cat >$t - if(! echo put $t $2 | sftp -b - $1 >/dev/null) + if(! echo put $t $2 | sftp -b /dev/stdin $1 >/dev/null) exit 1 } fn putfile9p{ |