Announcement

Collapse
No announcement yet.

proc_open Problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • proc_open Problem

    Halli hallo!

    Ich habe ein Problem mit proc_open. Und zwar wird bei mir die Ausgabe von dem Befehl 'dir' ausgegeben, aber wenn ich ein Programm starte, das in der Konsole läuft, wird anscheinend nix zurückgegeben... ist das normal?

    Hier mein Code:
    Code:
    <?
    $de = array ( 0 => array ("pipe", r ) , 1 => array ("pipe", w ) );
    
    proc_open ( "dir", $de, $pipes );
    
    while ( !feof ( $pipes[1] ) ) {
    	echo fgets ( $pipes[1], 1024);
    }
    ?>
    Das funktioniert, wenn ich jetzt aber 'dir' durch 'ysm' (so heißt das Programm, das gestartet werden soll) ersetzte, bleib die Ausgabe einfach leer.

    Hat jemand ne Idee warum?

    MfG
    V1rU5
Working...
X