[BangPypers] Restart when python script hangs

2014-06-02 Thread Rahul Gopan
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

[BangPypers] Fwd: Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
-- Forwarded message -- From: Rahul Gopan Date: Tue, May 27, 2014 at 12:06 PM Subject: Re: [BangPypers] Python script hangs after using logging module To: Noufal Ibrahim KV 1. Used subprocess.check_output. . Same result , it hangs 2. Am trying to run a bin file /bin/range

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
,format='%(asctime)s %(message)s',level=logging.DEBUG) items = commands.getoutput('COMMAND| wc -l') print items -- Hangs -- Help me to resolve it On Mon, May 26, 2014 at 5:42 PM, Rahul Gopan wrote: > -- > From: Rahul G > Sent: ‎

[BangPypers] Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
-Original Message- From: "Rahul G" Sent: ‎26-‎05-‎2014 05:41 PM To: "rahulpce...@gmail.com" Subject: Python script hangs after using logging module Hello, I tried to make a log file in a python script. After adding the line below logging.basicConfig(filename='LOG_FILE.log',