- Code: Select all
p = subprocess.Popen("ps -ef | grep 'for ((i=0' | grep /usr/bin/curl | grep -v grep",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
resp=p.communicate()[0]
indigo.server.log(resp)
In python in an indigo plugin and in a python shell launched from the indigo menu (should be both the same python version i.e. 2.6) produces different results:
in the first case I get
>>> " ....ther/grM-CM-<nTempera..."
and in the seconds case:
>>> "...ther/grünTempera..."
why is this different? and how can I get the 2. result in an indigoplugin?
I am stuck ..
Karl