#!/bin/rc rfork en argv0=$0 src=$1 dst=/n/wm/home/sl/9/$src fn usage { echo usage: $argv0 ... >[1=2] exit usage } if(! ~ $#* 1) usage if(test -f /srv/wm) rm /srv/wm srv -s 5 -e 'scpu -h wm -u sl -c ''/usr/local/bin/u9fs -u sl -na none''' wm /n/wm if(~ $src /n/mars2*) import -c mars2 / /n/mars2 if(~ $src /n/nm*) import -c nm / /n/nm if(~ $src /n/pp*) import -c pp / /n/pp vdircp $src $dst || echo failed `{date} $src>>$home/lib/backup rm /srv/wm