in reply to Re^2: qx not always capturing stdout
in thread qx not always capturing stdout
use Daemon::Simple; open(SAVEIN, "<&STDIN"); open(SAVEOUT, "<&STDOUT"); Daemon::Simple::init("daemon"); open(STDIN, "<&SAVEIN"); open(STDOUT, "<&SAVEOUT"); print qx("/external/command"); close(STDIN); close(STDOUT);
or you will have to redirect your output to a file
qx("/external/command > /tmp/file")
and read it back using open(), diamond and close()
|
|---|