PHP Could not open Input file
Hallo,
folgendes Problem existiert bei einem Projekt an dem ich arbeite...
Aufbau ...
- .sh die checkt ob eine "Instanz" von einem Skript läuft ... Wenn ja passiert nichts wenn nicht wird eine neue Instanz erstellt
- Fuelphp Task "runner" der "endlos" läuft und so aussieht
Code:
$bin = 'php';
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $bin = 'E:/xampp/php/php.exe';
$oil_path = realpath(__DIR__.'../../../').'\oil';
foreach($query->as_object()->execute() as $foo)
{
$output = shell_exec($bin.' '.$oil_path.' refine liebe foo='.$foo->id);
\Cli::write($output);
}
Das Problem das Dingen schreibt immer Could not open input file: oil ins Log file (also die SH) ich weiß null wieso ...
Wenn ich den runner task über console ausführe läuft alles wie erwartet.