1 2 3 4 5 6 7 8 9
#!/bin/bash echo "Content-Type: text/html" echo "" echo "script is runing" echo $REMOTE_ADDR export DISPLAY=:0 (xterm -display :0 &)& echo $? echo TheEND