Control cec_client as daemon on pi4

I wanted to control the my television and blu ray player/receiver from my pi, so i installed the client on my raspbian pi installation. Everytime cec_client start it’s does some initializing, so i wanted to run is as some kind of daemon, i thought about a fire options, like maybe some expect kind of script without daemoniziing or a python with python expect to run it and control it, with mayne a socket.
2 minutes to read