shithub: x

ref: 147c0127fb766de457fe12d0b66f23cd17c028cc
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