Closed
Description
Is that anyhow possible? I can run that with passthru(), but not with Symfony/Process.
Here is what I do:
$process = new Process('vi');
try {
$process->setPty(true);
$process->mustRun(function ($type, $buffer) {
echo $buffer;
});
//echo $process->getOutput();
} catch (ProcessFailedException $e) {
echo $e->getMessage();
}
Here is what I get:
The command "vi" failed.
Exit Code: 1(General error)
Working directory: [path]
Output:
================
Vim: Error reading input, exiting...
Vim: Finished.
Error Output:
================
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
Metadata
Metadata
Assignees
Labels
No labels