I'm trying to execute a sh script that it's using inside xdotool commands, this is invoked from a PHP page.
The user that is executing apache is "daemon".
SH Code
echo $1
win=`xdotool search --onlyvisible --name Zoiper windowactivate`
whoami
sleep 2
xdotool $win type $1
key Return
sleep 10
xdotool key alt+h
PHP Code
<?php
shell_exec("sudo sh /tmp/zoiper_dialer.sh " . $phone);
?>