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

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -