Will return the text output of running a given shell command.
Parameters : |
|
---|
With default arguments, behaves like commands.getoutput(shellCommand), except it works on windows as well.
kwargs are passed onto subprocess.Popen
Note that if the keyword arg ‘stdout’ is supplied (and is something other than subprocess.PIPE), then the return will be empty - you must check the file object supplied as the stdout yourself.
Also, ‘stderr’ is given the default value of subprocess.STDOUT, so that the return will be the combined output of stdout and stderr.
Finally, since maya’s python build doesn’t support universal_newlines, this is always set to False - however, set convertNewlines to True for an equivalent result.