ref: 3519f1d58ff78407227adb5a3a202d7a4e626a93
dir: /bin/rc/urimport/
#!/bin/rc rhost=$1 ruser=() if(~ $#rhost 0) { echo 'usage: urimport host' exit 'usage' } ruser=`{echo $rhost | sed 's/^([a-zA-Z0-9]+)@.*/\1/g'} if(~ $#ruser 0) ruser=`{cat /dev/user} if(! test -f /srv/execnet) { execnet /n/execnet srvfs execnet /n/execnet } mount -b /srv/execnet /net srv 'exec!ssh '^$rhost^' .local/bin/u9fs -l /dev/null -u '^$ruser^' -a none' $rhost