will not read the whole response of evoked command. Because of using logical condition && the above loop will continue reading until one of pipes reach its end. Better solution is to use || condition, in that case the above loop will continue reading until both pipes reach its ends.
Additionally fgets reads line by line from file pointer, so when error output is redirected to stdout (default library configuration) there is no way to read the whole output.
Hi,
there is an error in abstract class Janus_Shell_Command_Abstract. The following code:
will not read the whole response of evoked command. Because of using logical condition && the above loop will continue reading until one of pipes reach its end. Better solution is to use || condition, in that case the above loop will continue reading until both pipes reach its ends.
Additionally fgets reads line by line from file pointer, so when error output is redirected to stdout (default library configuration) there is no way to read the whole output.
Regards.