Running commands from virtual environment

I have HAAS installed on my OSMC raspberry pi. Everything works fine but i can’t understand how to run commands outside the virtual environment.

For example to turn my tv on:
echo on 0 | cec-client -s

I get:
bash: cec-client: command not found

A script for rebooting the pi also does not work.

under the root user (osmc) the commands all work as expected.

Hi @Hoaxr, use full paths to your commands.
/bin/echo on 0 | /path/to/cec-client -s
You can get the path to cec-client with ẁhich cec-client

Thanks man that “which” saved the day. It works!