반응형

bash shell 에서 이렇게 하면 됨.

printf "{\"id\":1,\"method\":\"set_power\",\"params\":[\"on\"]}\\r\\n" >/dev/tcp/192.168.0.48/55443
printf "{\"id\":1,\"method\":\"set_power\",\"params\":[\"off\"]}\\r\\n" >/dev/tcp/192.168.0.48/55443

반응형
Posted by Real_G