Screen mit php

robaer1982

Mitglied
Hi habe mal wieder ein kleies Problem

PHP:
<?
$output = shell_exec("screen -r console; $wert1 $wert<<");

echo"$output";
?>

so als antwort bekomme ich "Must be connected to a terminal".
Hab schon mich kundig gemacht das ich es in eine datei umleiten muss aber wie ?
PS OS ist SUSE Linux

danke im voraus

mfg robaer1982
 
PHP:
<?
$output = shell_exec("screen -r console; $wert1 $wert > blabla.txt");

echo"$output";

$f = file("blabla.txt");
print_r($f);
?>

Keine Ahnung obs geht, könnts mir aber vorstellen.
 
Zurück