Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Raspberry Pi OS • Can't use ydotool as www-data

$
0
0
I am trying to do desktop automation from the www-data user. I have ydotool set up it can be used as a home user and as the sudo user. However, even when I run shell_exec("sudo ydotool key 51:1") I always
"get failed to connect socket `/tmp/.ydotool_socket': No such file or directory Please check if ydotoold is running."
/tmp/.ydotool_socket does exist and I have even made www-data the owner of that file. I just can't rack my brain around why in a normal terminal it works but not as shell_exec. If you have any suggestions please let me know.

Statistics: Posted by benjam128 — Sat Jan 20, 2024 6:00 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles