Plan 9 from Bell Labs’s /usr/web/sources/contrib/nemo/lib/repl/synccmd

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


#!/bin/rc

if (~ $sysname whale aquamar)
	exit 'Run it on your computer terminal'

fn noauth {
	echo has no auth for $1
	exit noauth
}

fn hasauth {
	dir=$1
	touch $1/.$pid	|| noauth $1
	chgrp -o sys $1/.$pid || noauth $1
	rm $1/.$pid
}

test -e /srv/fsssync || echo srv -PWA fsssync >> /srv/fscons
mount -c /srv/fsssync /n/fossil
mount -c /srv/fsssync /n/bfossil
9fs whale
9fs planb


# hasauth /n/planb
hasauth /n/fossil

repl/sync -r1 /lib/repl/asys  /lib/repl/lsys
repl/sync -1 /lib/repl/ahome  /lib/repl/lhome

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.