ref: 54b29c4c7fcfde6b61972b5c8bb8df6fb59cdacd
dir: /run/
#!/bin/rc
rfork e
. /sys/lib/x/lib.rc
usage = '
x/run [ssh-flags] command
'
flags=()
while(~ $1 -* && ! ~ $1 --){
flags=($flags $1)
shift
}
if(~ $1 --)
shift
{
echo cd `{x/path -P}
if(! grep -s '/dev/cons' /fd/0ctl)
cat
if not
echo $"*
}| ssh $flags `{x/path -l}