978628d679
this allows /rc/bin/service/tcp17019 to be called from aux/listen1 without arguments like: aux/listen1 tcp!*!rcpu /rc/bin/service/tcp17019
11 lines
243 B
Bash
Executable file
11 lines
243 B
Bash
Executable file
#!/bin/rc
|
|
if(~ $#* 3){
|
|
netdir=$3
|
|
remote=$2!`{cat $3/remote}
|
|
}
|
|
fn server {
|
|
~ $#remote 0 || echo -n $netdir $remote >/proc/$pid/args
|
|
rm -f /env/'fn#server'
|
|
. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
|
|
}
|
|
exec tlssrv -a /bin/rc -c server
|