[BangPypers] Python script hangs after using logging module

2014-05-26 Thread Rahul Gopan
-Original Message- From: Rahul G ra...@visolve.com Sent: ‎26-‎05-‎2014 05:41 PM To: rahulpce...@gmail.com 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

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

2014-05-26 Thread Gora Mohanty
On 26 May 2014 17:42, Rahul Gopan rahulpce...@gmail.com wrote: -Original Message- From: Rahul G ra...@visolve.com Sent: ‎26-‎05-‎2014 05:41 PM To: rahulpce...@gmail.com rahulpce...@gmail.com Subject: Python script hangs after using logging module Hello, I tried to make a log

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

2014-05-26 Thread Rahul Gopan
#!/usr/local/bin/python2.7 import commands import subprocess items = commands.getoutput('COMMAND branch Begin_no End_no | wc -l') print items -- Works -- #!/usr/local/bin/python2.7 import commands import subprocess import logging

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

2014-05-26 Thread Aditya Laghate
On 27/05, Rahul Gopan wrote: #!/usr/local/bin/python2.7 import commands import subprocess import logging logging.basicConfig(filename='Log_file.log',filemode='w',format='%(asctime)s %(message)s',level=logging.DEBUG) items = commands.getoutput('COMMAND branch Begin_no End_no | wc -l')

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

2014-05-26 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Rahul Gopan wrote: #!/usr/local/bin/python2.7 import commands import subprocess items = commands.getoutput('COMMAND branch Begin_no End_no | wc -l') print items -- Works -- #!/usr/local/bin/python2.7 import commands import subprocess import logging