I want to execute a command on my Linux, triggerd by PHP/HTML. Thats my code:
            <td> Status: </td>
            <?php  
                $kommando = "asterisk -rx \'database get SW OFFICE-OPEN\'  \> /etc/asterisk/abstatus.txt";
                shell_exec($kommando);          
            ?>
            <td>
The problem is that the $kommando String is getting stopped at \>, the rest is just drawn on my Site.
First I was using > only, then as \> - nothing worked.
Can you help me please?
 
     
    
Aktiv \
";` that should read as `$ergebnis = "Aktiv
";` or `$ergebnis = 'Aktiv
';` – Funk Forty Niner Apr 20 '16 at 13:56