only generic function __popen3 left and put exec parameters in logical order:stdin, stdout, stderr