ref: bc762e9c9294990c0d2480295637c792363dcc8c
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 $rhost) ruser=`{cat /dev/user} srv -e 'ssh '^$rhost^' .local/bin/u9fs -l /dev/null -u '^$ruser^' -a none' $rhost # srv -e 'ssh '^$rhost^' go/bin/export9p -s' $rhost