linux - Executing Sh with xdotools commands from PHP -


i'm trying execute sh script it's using inside xdotool commands, invoked php page.

the user executing apache "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); ?> 


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -