Hi Kurt,
Sorry for the late reply.
My problem is resolved. Instead of subprocess.Popen, I used
subprocess.call.
Thanks all for your replies.
AD
On Fri, Sep 18, 2009 at 8:05 PM, Kurt Bendl k...@tool.net wrote:
Hello,
On Sep 18, 2009, at 5:16 AM, Ansuman Dash wrote:
I have written it
Ansuman Dash wrote:
I am downloading files using various command (because files are
different) meant for a executable.
What is various commands? Are you using wget/curl or similar
command-line downloader programs? Or are you using a python-based script
(that uses urllib)? Or are you using a
Hi,
I have written it like that. It is like press 1 and it ll download file1 and
press 2 it ll download file2 etc
But my question was I am using time.sleep() to make my script to wait for
the file download and then validate it in log file, so is there any other
way I can synchronize my code
Ansuman Dash wrote:
Hi,
I have written it like that. It is like press 1 and it ll download file1
and press 2 it ll download file2 etc
What is like that? We are not psychic that could read your mind...
Describe the way you downloaded the file.
On Fri, 2009-09-18 at 14:46 +0530, Ansuman Dash wrote:
I have written it like that. It is like press 1 and it ll download
file1 and
press 2 it ll download file2 etc
But without providing people how you accomplish this there is no way to
help.
But my question was I am using time.sleep()
Hello,
On Sep 18, 2009, at 5:16 AM, Ansuman Dash wrote:
I have written it like that. It is like press 1 and it ll download
file1 and press 2 it ll download file2 etc
But my question was I am using time.sleep() to make my script to
wait for the file download and then validate it in log
Hi,
I modified my code little bit and it is working fine now,
=
if os.access(C:/Python25/Own.log, os.F_OK):
f = open(C:/Python25/Own.log)
time.sleep(30)
try:
line = f.readlines()
a =
On Thu, Sep 17, 2009 at 5:47 AM, Ansuman Dash ansuman.d...@gmail.com wrote:
Hi,
I modified my code little bit and it is working fine now,
=
if os.access(C:/Python25/Own.log, os.F_OK):
f = open(C:/Python25/Own.log)
I am using same process for multiple file download. So I need to download
those one by one.
Moreover some files are very huge (around 120 MB). So I need to make script
to wait before verifying the file is downloaded.
Thanks
AD
On Thu, Sep 17, 2009 at 5:34 PM, Kent Johnson ken...@tds.net wrote:
On Thu, Sep 17, 2009 at 8:40 AM, Ansuman Dash ansuman.d...@gmail.com wrote:
I am using same process for multiple file download. So I need to download
those one by one.
Moreover some files are very huge (around 120 MB). So I need to make script
to wait before verifying the file is downloaded.
I am downloading files using various command (because files are different)
meant for a executable.
So I have created event driven program to download these files one by one.
But some files are very huge so I want to know how can I synchronize it with
my code.
That means I want to make my code
Ansuman Dash ansuman.d...@gmail.com wrote
In Python scripting, how can I execute a command (which can be run from
spcific directory) and then retrieve the result (after executing the
command
it give the command is executed successfull or not), so that I can
validate
it.
There are sweveral
(Don't top-post; it makes reading the thread quite confusing)
Ansuman Dash wrote:
Hi,
Thank you very much for the quick response.
Code is working fine.
Now I am trying to validate that the command is executed successfully.
I have written following script to validate the log file which is
13 matches
Mail list logo