Autostart.sh

I created autostart.sh in /storage/.config
this is the content
(
python /storage/pyCecClient.py
)

But my script is not running.

When i run in from ssh it works.
Any idea how to get to run after start up in rasplex?

BTW only thing script is supposed to switch input to rPI and put system to standby when input is switeched to TV (that only happens when ps4 is turned off). Kinda crazy sollution i guess, but supprisingly(?) it looks like it works.

your script code seems wrong

try:
#!/bin/sh
(python /storage/pyCecClient.py;) &

also did you made it executable with chmod +x /storage/.config/autostart.sh?
remember you can try running it from ssh to debug it

checking it again you dont really need to have it as an executable
but you might need add a sleep function so it waits for the rest of the system
try for example

#!/bin/sh
(sleep 10s;
python /storage/pyCecClient.py) &