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/netfilestat | |
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/netfilestat')
-rwxr-xr-x | src/cmd/netfiles/netfilestat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/netfiles/netfilestat b/src/cmd/netfiles/netfilestat index 1d687e51..992cac22 100755 --- a/src/cmd/netfiles/netfilestat +++ b/src/cmd/netfiles/netfilestat @@ -1,7 +1,7 @@ #!/usr/local/plan9/bin/rc if(! ~ $#* 2){ - echo usage: netisdir system path >[1=2] + echo usage: netfilestat system path >[1=2] exit usage } @@ -18,7 +18,7 @@ fn dostat { echo !echo XXX connected echo cd $2 echo !echo XXX directory exists - } | sftp -b - $1 >$t >[2=1] + } | sftp -b /dev/stdin $1 >$t >[2=1] if(9 grep -s XXX.directory.exists $t){ echo directory exit 0 |