shithub: x

ref: 7b56396f68019f1027bad077fe4a5b600d609f3e
dir: /vt/

View raw version
#!/bin/rc
rpath=`{x/path -P}
cmd=`{awk 'BEGIN{
	x = ENVIRON["*"]
	if(length(x) == 0)
		x = "$SHELL"
	printf("$SHELL -c ''cd %s; %s''",
		ENVIRON["rpath"], x)
}'}
vt ssh -r `{x/path -l} $"cmd