tnetfileput - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- tnetfileput (253B) --- 1 #!/usr/local/plan9/bin/rc 2 3 if(! ~ $#* 2){ 4 echo 'usage: netfileput system path' >[1=2] 5 exit usage 6 } 7 8 f=putfile 9 10 . netfilelib.rc $1 11 12 fn putfile{ 13 cat >$t 14 echo put $t $2 | runsftp -e $1 15 } 16 fn putfile9p{ 17 if(! 9p write $1/$2) 18 exit 1 19 } 20 21 $f $1 $2 22 exit 0 23 |