Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82316

Python script isn't producing text in data file

Newsgroups comp.lang.python
Date 2014-12-10 15:04 -0800
Message-ID <fc9502a3-ee87-4dfc-ab03-a39edd2e45ca@googlegroups.com> (permalink)
Subject Python script isn't producing text in data file
From Docfxit <docfxit@gmail.com>

Show all headers | View raw


I have a Python script that runs with no errors but it doesn't produce the output it should in a text file.  I can't figure out why. Is this the correct forum to post this in or can someone suggest a more appropriate forum?

The script selects all files from the day before the script is run.  So if today is December 10th the script will select all log files from December 9th.

The script reads all files from the day before and summarizes the information in the log files.  It writes out a text file with the summary information.

What should show up in the text file is information that is in this zip file:
http://theoffice.la/m/SummaryExample.zip

In the script line 11 it states what directory to look for the input log files.
The input log file name will need to be changed to yesterdays date for the script to read it.
This is an example of an input log file:
http://theoffice.la/m/2014-12-05Test.zip

This is the Python Script that I'm having trouble with:
http://theoffice.la/m/CGPLogSummaryTest.py

If I haven't provided enough information please let me know.

Thank you,

Docfxit



Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 15:04 -0800
  Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 15:07 -0800
  Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 10:11 +1100
    Re: Python script isn't producing text in data file sohcahtoa82@gmail.com - 2014-12-10 17:32 -0800
      Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 12:44 +1100
        Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 02:41 +0000
          Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 13:50 +1100
        Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 19:30 -0800
          Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 14:40 +1100
          Re: Python script isn't producing text in data file Ben Finney <ben+python@benfinney.id.au> - 2014-12-11 14:52 +1100
            Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 20:23 -0800
              Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 15:35 +1100
              Re: Python script isn't producing text in data file Ben Finney <ben+python@benfinney.id.au> - 2014-12-11 15:38 +1100
                Re: Python script isn't producing text in data file Grant Edwards <invalid@invalid.invalid> - 2014-12-11 05:22 +0000
              Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 05:18 +0000
                Re: Python script isn't producing text in data file Tim Golden <mail@timgolden.me.uk> - 2014-12-11 06:07 +0000
              Re: Python script isn't producing text in data file alister <alister.nospam.ware@ntlworld.com> - 2014-12-11 09:16 +0000
              Re: Python script isn't producing text in data file Peter Otten <__peter__@web.de> - 2014-12-11 10:30 +0100
                Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-11 13:27 -0800
          Re: Python script isn't producing text in data file Grant Edwards <invalid@invalid.invalid> - 2014-12-11 05:19 +0000
            Re: Python script isn't producing text in data file alister <alister.nospam.ware@ntlworld.com> - 2014-12-11 09:06 +0000
  Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 02:47 +0000
    Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 19:47 -0800

csiph-web