-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
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
#!/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
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')
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