Alors j’ai essayer de comprendre , il faut avec jeexplorer aller dans html/plugins/script/data et créer un fichier ssh_commande.php , et dans ce fichier je mets le fichier usr/bin/php, es ce bien comme ça qu’il faut faire?
Pour arriver sur mon design en pleine écran j’ai réussi uniquement avec le plugin autologin
Edit alors j’ai mis comme ça;
#!/usr/bin/php
$ip = $eqLogic->getConfiguration('192.168.1.15');
$user = $eqLogic->getConfiguration('pi');
$pass = $eqLogic->getConfiguration('toto');
$port = $eqLogic->getConfiguration('22');
$action=$argv[1];
$Command='export DISPLAY=:0 ; xset dpms force ' . $action;
echo('*Action:'.$action);
//echo('*$ip:'.$ip);
//echo('*$port:'.$port);
//echo('*$user:'.$user);
//echo('*$pass:'.$pass);
if (!$connection = ssh2_connect($ip,$port)) {
echo('connexion SSH KO pour '.$equipement);
}else{
if (!ssh2_auth_password($connection,$user,$pass)){
echo('Authentification SSH KO pour '.$equipement);
}else{
$Cmdoutput = ssh2_exec($connection, $Command);
stream_set_blocking($Cmdoutput, true);
$response = stream_get_contents($Cmdoutput);
echo $response;
}
ssh2_disconnect($connection);
}
?>
La commande on ou off me dis: Action exécutée avec succès
Mais rien ne ce passe .
Edit 2
Je pense que le problème viens de
Je ne vois pas ou faire cette ligne .