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
Post a Comment