Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/venti/words/wrtape

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

tape=$1

start=`{echo $tape'*32+1' | hoc}
end=`{echo  $start'+31' | hoc}

echo rewind | scuzz /dev/sd03

arenas=`{hget http://iolaire/index | grep '^arena' | sed  -n $start,$end^p | sed 's/^.*=//' | sed 's/ .*//'}
for(i in $arenas) {
	dev=`{hget http://iolaire/index | grep ''''$i'''' | sed 's/.* on //' | sed 's/ .*//'}
	echo `{date} $tape $i
	echo `{date} $tape $i >> /sys/log/ventibackup
	echo $dev
	echo write '''|venti/rdarena $dev $i''' | scuzz -m 8192 /dev/sd03
	echo filemark | scuzz -m 6144 /dev/sd03
}

echo rewind | scuzz /dev/sd03


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.