0

We'd like to use the following bash variables into an telnet session and work with the output of the telnet in the bash:

Bash:

$me=Tester111
$myid=XXXWWWZZZ

Telnet:

login serveradmin PW
msg OK (output)
use sid=1
msg OK (output)
clientgetids cluid=$myid
cluid=XXXWWWZZZ clid=2 name=Tester111 (output)

Then bash again:

...
Workings with the clid=2 output
...

We need telnet cause it's used in teamspeak. How to start an telnet session in an bash script and handle it?

0 Answers0