viewtopic.php?f=6&t=1848&start=30#p5862
puoi rivedere i msg da quel post in avanti? grazie
mio attuale config_daemon.php
Codice: Seleziona tutto
<?php
if(!defined('checkaccess')){die('Direct access not permitted');}
// Manage com. apps daemon as 'http' user if needed
if (!is_null($PID)) { // Start Daemon
$output = shell_exec('pooler485 1,2 9600 /dev/ttyUSB0 > /dev/null 2>/dev/null &');
$output = shell_exec('pooler485 6,7 9600 /dev/ttyUSB1 > /dev/null 2>/dev/null &');
//$output = shell_exec('poolSDM485 1 9600 /dev/sdm > /dev/null 2>/dev/null &');
//$output = shell_exec('/usr/bin/curl http://192.168.1.12/startsdm.php');
//$output = shell_exec("/srv/http/comapps/poolmeters.py live > /dev/null 2>&1 &");
} else { //Stop
$output = shell_exec('pkill -f pooler485 > /dev/null 2>&1 &');
//$output = shell_exec('pkill -f poolSDM485 > /dev/null 2>&1 &');
}
?>