How can I use telnet command on Raspberry Pi3 (at Hass.io with resinOS)?

Hi.

I want to control my IR device with telnet.
I tried to use “telnet” command but “command not found”.
I also tried “Telnet Switch”, but the IR device needs to sleep when command sent, so I have to use telnet command with sleep.

Any ideas?

Thanks.

I can use telnet command after install “busybox-extras”

apk update; apk add busybox-extras

Then I can use telnet.
But rebooting Hass.io deletes the buxybox-extra package.

Any ideas?
Thanks

You aren’t supposed to install anything in hassio. It’s a docker container.

1 Like

I use ´curl telnet://´ instead of pure telnet in my docker container.

2 Likes

Thank you for your reply!

I use ´curl telnet://´ instead of pure telnet in my docker container.

Just I also tried curl command such as:
(sleep 1; echo "command"; sleep 1) | curl --raw --connect-timeout 3 telnet://192.0.0.1:51013
(But it is not working yet. I have to adjust bash commands)

I believe my method is true by your advise.

1 Like