Hello Staf-users,
Im trying to run the following python code in STAX XML program within
<script>. But facing RC:4001 error submitting executing request problem.
<script>
import os
import signal
import subprocess
# Change this to your process name
processname = "server"
def findThisProcess(process_name):
ps = subprocess.Popen("ps -eaf |
grep "+process_name, shell=True, stdout=subprocess.PIPE)
output = 'ps.stdout.read()'
ps.stdout.close()
ps.wait()
return output
</script>
Q1: Does the method I have followed is correct or not?
Q2: Do we need to set up python installer path or env variable need to set
before running the python code.
Please help
Thanks,
V Raja
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users