Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

MKS command automation Python

$
0
0

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.


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>