Code : Tout sélectionner
<?php
echo shell_exec('sudo toor');
echo "passwd";
echo exec('testconnect 80')
?>
le script shell est le suivant testconnect
Code : Tout sélectionner
#! /bin/sh
DISPLAY=localhost:0 # détermine l'écran d'affichage
flashplayer http://127.0.0.1:$1/Appliance/menu.swf &
var/log/error.log
(flashplayer:30528): Gtk-WARNING **: cannot open display:
donc ma question est comment faire pour lancer un programme graphique sur le serveur avec php
[/code]