sostituisci così:
Codice PHP:
$output = array();
exec($command$output$worked);