aboutsummaryrefslogtreecommitdiff
path: root/bin/netfileput
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-18 19:29:47 +0000
committerrsc <devnull@localhost>2005-03-18 19:29:47 +0000
commit72fd2f881907db5e367ffee1fcecb737c44a0090 (patch)
treeda36e0e4027e4f4f4a9b07c60ba98f8c71b1d987 /bin/netfileput
parent4c79af3977f1849f246ae2ce347cd7e6376cff5b (diff)
downloadplan9port-72fd2f881907db5e367ffee1fcecb737c44a0090.tar.gz
plan9port-72fd2f881907db5e367ffee1fcecb737c44a0090.tar.bz2
plan9port-72fd2f881907db5e367ffee1fcecb737c44a0090.zip
will install from src dir
Diffstat (limited to 'bin/netfileput')
-rwxr-xr-xbin/netfileput27
1 files changed, 0 insertions, 27 deletions
diff --git a/bin/netfileput b/bin/netfileput
deleted file mode 100755
index baa3eb12..00000000
--- a/bin/netfileput
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/local/plan9/bin/rc
-
-if(! ~ $#* 2){
- echo 'usage: netput system path' >[1=2]
- exit usage
-}
-
-f=putfile
-ns=`{namespace}
-if(u test -S $ns/$1)
- f=$f^9p
-
-t=/tmp/netget.$pid.$USER
-fn sigexit { rm -f $t }
-
-fn putfile{
- cat >$t
- if(! echo put $t $2 | sftp -b - $1 >/dev/null)
- exit 1
-}
-fn putfile9p{
- if(! 9p write $1/$2)
- exit 1
-}
-
-$f $1 $2
-exit 0