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
Das Problem das Dingen schreibt immer Could not open input file: oil ins Log file (also die SH) ich weiß null wieso ...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); }
Wenn ich den runner task über console ausführe läuft alles wie erwartet.




Zitieren