How to verify whether a process got hanged or still alive.

2009-01-15 Thread neel
Hi There,

I want to check the health of IE process using python. I am running an
application on IE. I have to verify that the application is not
crashing the IE. Is there any module which can help me in getting the
process status?

Thanks,
Neel
--
http://mail.python.org/mailman/listinfo/python-list


How to verify whether a process got hanged or still alive.

2009-01-15 Thread neel
Hi There,

I want to check the health of IE process using python. I am running an
application on IE. I have to verify that the application is not
crashing the IE. Is there any module which can help me in getting the
process status?

Thanks,
Neel
--
http://mail.python.org/mailman/listinfo/python-list


Read Application python logs

2017-07-14 Thread neel patel
Hi,

I wrote one simple C code and integrated python interpreter.

I am using Python C API to run the python command.

Below code used Python C API inside .c file.


PyObject* PyFileObject = PyFile_FromString("test.py", (char *)"r");

int ret = PyRun_SimpleFile(PyFile_AsFile(PyFileObject), "test.py");

if (ret != 0)

print("Error\n");


Above code working fine. It runs the "test.py" but inside "test.py" there
is some print statement so how can i read those messages in this .c file
from console ?

Thanks in Advance.
-- 
https://mail.python.org/mailman/listinfo/python-list