plan9/rc/bin/service/tcp565

8 lines
212 B
Plaintext
Raw Normal View History

2014-02-08 11:19:48 +04:00
#!/bin/rc
#whoami service net dir
loc=`{cat $3/local|sed 's/!.*//'}
rem=`{cat $3/remote}
port=`{echo $rem|sed 's/^[^!]*!//'}
rem=`{echo $rem|sed 's/!.*//'}
echo i am $loc sysname $sysname you are $rem port $port