[Tutor] Package for verify validity of any kind of IP

2009-10-08 Thread Ansuman Dash
Hi, Can anybody suggest me a package to verify validity of any kind of IP, i.e. IPv4 or IPv6. Thanks, AD ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Executing a command from a specific directory

2009-09-24 Thread Ansuman Dash
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 wrote: > Hello, > > On Sep 18, 2009, at 5:16 AM, Ansuman Dash wrote

Re: [Tutor] Executing a command from a specific directory

2009-09-18 Thread Ansuman Dash
12:21 PM, Lie Ryan wrote: > 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

Re: [Tutor] Executing a command from a specific directory

2009-09-17 Thread Ansuman Dash
wait for the complete download of that file and then I ll read the log file and validate that download is successful. Thanks, AD On Thu, Sep 17, 2009 at 7:02 PM, Kent Johnson wrote: > On Thu, Sep 17, 2009 at 8:40 AM, Ansuman Dash > wrote: > > I am using same process for multiple file

Re: [Tutor] Executing a command from a specific directory

2009-09-17 Thread Ansuman Dash
Sep 17, 2009 at 5:47 AM, Ansuman Dash > wrote: > > Hi, > > > > I modified my code little bit and it is working fine now, > > > > = > > if os.access("C:/Python25/Own.log",

Re: [Tutor] Executing a command from a specific directory

2009-09-17 Thread Ansuman Dash
; to make my code wait. Is there any other way I can write my script to resolve synchronization issues. Thanks, AD On Thu, Sep 17, 2009 at 12:13 AM, Steve Willoughby wrote: > > Ansuman Dash wrote: > > >Now I am trying to validate that the command is executed successfully. > > >

Re: [Tutor] Fwd: Executing a command from a specific directory

2009-09-16 Thread Ansuman Dash
f.close() else: pLogger.info("File doesn't exist") = But it is not working, even if ping is successfully it is printing "Ping is not successful.". Can you please point out where I am making mistake. Thanks, AD On Wed, Sep 16, 2009 at

[Tutor] Fwd: Executing a command from a specific directory

2009-09-15 Thread Ansuman Dash
Hello Everybody, 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. Thanks, AD