Hi,
I am trying to automate MKS commands using python. Please help me to capture the error message.
Example:
import subprocess
import time
viewproject_cmd='im issues'
proc = subprocess.Popen(viewproject_cmd,stdout=subprocess.PIPE,shell=True)
(out, err) = proc.communicate()
The above script is throwing me following error,
*** MKS124814: Cannot show view information: MKS124808: This command requires operands: item id
I am unable to capture the above error in any variable. Also I see this error only if I execute the above python script in the cmd.exe
Please help me to handle the above error in python script itself.