Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.044 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:Python': 0.06; 'append': 0.09; 'part,': 0.09; 'predefined': 0.09; 'suggest': 0.14; 'evening,': 0.16; 'looping': 0.16; 'subject:File': 0.16; 'subject:Writing': 0.16; 'whatever,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'bangalore': 0.19; 'file,': 0.19; 'command': 0.22; 'email addr:gmail.com>': 0.22; 'module,': 0.24; 'file.': 0.24; 'logging': 0.26; 'header:In-Reply-To:1': 0.27; 'is?': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'getting': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'basic': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'right?': 0.36; 'url:listinfo': 0.36; 'next': 0.36; 'url:org': 0.36; 'list': 0.37; 'being': 0.38; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'morning': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'url:mail': 0.40; 'tips': 0.61; 'new': 0.61; 'kindly': 0.61; "you're": 0.61; 'name': 0.63; 'group,': 0.63; 'dear': 0.65; 'hours': 0.66; 'methodology': 0.68; 'results': 0.69; 'jul': 0.74; 'researched': 0.84; 'esteemed': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=SergWujdzUqY1vKrPLY4hVu9fpEv2skPP+HMM63wp6E=; b=LavR+fjvbGfRA7Sxr3Ekn/lod/pG1QManRSJ3DX70iyCOHY8zexBBbxl9PbT7XdfXb /4fSnriijpv61lcxV8FvwbgeXG9w1FBVdO+Koh33KrfO1XVFvzfAcpkdleuB3qiBnH/P R5OqJV4JNUpDUWf3GgLGGEK2KBHN4dNR7BxB5woSExRV7yL/Kkx1g9VDuv0xQtYecxUK KS4WuCI8SRjoQaOv6cZ3iPT6FuxMgwOyndrmgAS9RBtw5Z2JQ46seLyNx5l/flZ4lSuQ s/o5W8SXeM0DLxFGKALa5k0BwLLsMbABIDbpalvJUa2anNYGJxJkDVcZsL4XRfWVbmE4 oDOQ== X-Received: by 10.112.139.167 with SMTP id qz7mr32135672lbb.22.1404927603183; Wed, 09 Jul 2014 10:40:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <33d2582e-06b6-4cb9-8d60-7f94aa32283c@googlegroups.com> From: Abhiram R Date: Wed, 9 Jul 2014 23:09:23 +0530 Subject: Re: Writing Python File at Specific Interval To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c242c2b9159104fdc632a0 X-Mailman-Approved-At: Wed, 09 Jul 2014 21:25:01 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 127 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404933902 news.xs4all.nl 2842 [2001:888:2000:d::a6]:53550 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74276 --001a11c242c2b9159104fdc632a0 Content-Type: text/plain; charset=UTF-8 Looping in the list to improve on my suggestion or suggest an alternative On Wed, Jul 9, 2014 at 11:03 PM, Abhiram R wrote: > Hi Subha, > What is the current methodology you're using? If your code is already > being called every 24 hours or whatever, you can use a "touch" command > inside an os.system() call and create a new file and append your results to > it, right? Is that what your objective is? > > > On Wed, Jul 9, 2014 at 8:06 PM, wrote: > >> Dear Group, >> >> I am trying to write a file, which would create a new file name >> as the code runs. >> >> The code (a basic crawler) would run every morning >> or evening, on a predefined time. [This part is fine]. >> >> In the next part, I am trying to store the daily >> results to a new file. >> >> As I researched I found some tips around time module, >> logging module, pythoncom etc. But not getting any important >> lead. >> >> If any one of the esteemed members may kindly suggest. >> >> Regards, >> Subhabrata Banerjee. >> -- >> https://mail.python.org/mailman/listinfo/python-list >> > > > > -- > Abhiram.R > M.Tech CSE (Sem 3) > RVCE > Bangalore > -- Abhiram.R M.Tech CSE (Sem 3) RVCE Bangalore --001a11c242c2b9159104fdc632a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Looping in the list to improve on my suggestion or suggest an altern= ative


On Wed, Jul 9, 2014 at 11:03 PM, Abhiram R <abhi.darkness@gmail.= com> wrote:
Hi Subha,
What is the current methodology you're using? If your code is already b= eing called every 24 hours or whatever, you can use a "touch" com= mand inside an os.system() call and create a new file and append your resul= ts to it, right? Is that what your objective is?


On Wed, Jul 9, 2014 at 8:06 PM, <subhabangalore@g= mail.com> wrote:
Dear Group,

I am trying to write a file, which would create a new file name
as the code runs.

The code (a basic crawler) would run every morning
or evening, on a predefined time. [This part is fine].

In the next part, I am trying to store the daily
results to a new file.

As I researched I found some tips around time module,
logging module, pythoncom etc. But not getting any important
lead.

If any one of the esteemed members may kindly suggest.

Regards,
Subhabrata Banerjee.
--
https://mail.python.org/mailman/listinfo/python-list



--
Abhiram.R
M.Tech CSE (Sem 3)
RVCE
Bangalore=C2=A0



--
Abhiram.R
M.Tech CSE (Sem 3)
RVCE
Bangalore=C2=A0
--001a11c242c2b9159104fdc632a0--