Can't close a scpi(telnet) session with echo “^]” when I use it in a script

后端 未结 8 2178
日久生厌
日久生厌 2021-02-01 14:08

The use of echo-e \"\\ 029\" does not work either. But if use strg + alt gr + ] directly in a terminal session -> it works.

8条回答
  •  遇见更好的自我
    2021-02-01 15:03

    The ^] means ctrl + right bracket. As strange as that is, it works. You'll be taken to the telnet prompt, where you can type quit.

    On international keyboards the ] character is often not a single key, and needs to be replaced with some other key. The correct key is typically the key to the right of P or the next key after that.

    Here's a list based on comments below:

    Finnish, Swedish, Norwegian, Danish: ctrl + å
    French: ctrl + 6
    German: ctrl + ü
    Swiss: ctrl + ¨
    Hungarian: ctrl + 5
    Portuguese: ctrl + ´
    Dutch, Belgian: ctrl + $
    Canadian French: ctrl + ç
    

提交回复
热议问题