Update socat script
This commit is contained in:
parent
c229a79f4e
commit
f8412386c4
5 changed files with 13 additions and 24 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# $1: PTTY ID
|
||||
# $2: TCP server port
|
||||
# $1: PTTY
|
||||
# $2: Unix socket
|
||||
|
||||
socat -d -d "file:${1},raw,echo=0" "TCP-LISTEN:${2},reuseaddr"
|
||||
socat -d -d "file:${1},raw,echo=0" "UNIX-LISTEN:${2},reuseaddr"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PTTY=$(seq -f "+${1}-%g" -s "," "${T38MODEM_MODEM_COUNT}")
|
||||
PTTY=$(seq -f "+${1}%g" -s "," "${T38MODEM_MODEM_COUNT}")
|
||||
|
||||
CMD=(
|
||||
"t38modem"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue