Hello,
When I run a python script it hangs at random places. Is there any way to
identify when the script hangs and to resume it automatically. When I see
that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command
to start it again. I want to automate this.
Kindly help me how it
You might need to find first where it hangs.
You can do this using test cases.
Also if you give some code snippet, we might able to help you.
Have a good luck
On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote:
Hello,
When I run a python script it hangs at random
hi rahul,
as rohit mentioned, it would be helpful,
if you can share the code of the script in question
you can share upload the script here
https://gist.github.com/
cheers,
ashish
*The only way to do great work is to love what you do. If you haven’t found
it yet, keep looking. Don’t settle.
On Mon, Jun 02 2014, Rahul Gopan wrote:
Hello,
When I run a python script it hangs at random places. Is there any way to
identify when the script hangs and to resume it automatically. When I see
that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command
to start it again. I
On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote:
Hello,
When I run a python script it hangs at random places. Is there any way to
identify when the script hangs and to resume it automatically. When I see
that it is not responding i do ^Z (Ctrl -Z) to stop and then use
If by any chance you are trying to write a deamon, you could monitor it using
http://supervisord.org/
On Mon, Jun 2, 2014 at 6:56 PM, Sateesh Kumar sateeshpy...@gmail.com wrote:
On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com wrote:
Hello,
When I run a python script it
Sateesh,
I have a question.
In your sample code you are registering the method signal_handler prior to its
definition.
Does that work?
--SSK.
On Monday, 2 June 2014 6:57 PM, Sateesh Kumar sateeshpy...@gmail.com wrote:
On Mon, Jun 2, 2014 at 3:14 PM, Rahul Gopan rahulpce...@gmail.com
On Tue, Jun 3, 2014 at 9:18 AM, Senthil skksun...@yahoo.co.in wrote:
Sateesh,
I have a question.
In your sample code you are registering the method signal_handler prior to
its definition.
Does that work?
--SSK.
You are right. The registration of signal handler should be after the