Raja Narayanan
2011-03-18 13:43:17 UTC
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
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