Re: regarding popen function

2005-06-19 Thread Michael Hoffman
Peter Hansen wrote: > Michael, tai64nlocal is a program that converts a special "packed" > timestamp to human-readable form. Thanks Peter. I was asking somewhat rhetorically but I have a love of UNIX arcana and now I know. :) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python

Re: regarding popen function

2005-06-18 Thread Peter Hansen
praba kar wrote: >The following way of popen function usage is > wrong or not kindly give me answer regarding this > > time = os.popen("echo %s | tai64nlocal" % > line[2]).read() Did you try it? Just open the Python interactive interpreter and see what happens: Python 2.3.4 (#1, Feb 2 200

Re: regarding popen function

2005-06-18 Thread Michael Hoffman
praba kar wrote: >The following way of popen function usage is > wrong or not kindly give me answer regarding this > > time = os.popen("echo %s | tai64nlocal" % > line[2]).read() I don't know, I don't know what tai64nlocal is or what's in line[2]. What happened when you tried it? Personall

regarding popen function

2005-06-17 Thread praba kar
Dear All, The following way of popen function usage is wrong or not kindly give me answer regarding this time = os.popen("echo %s | tai64nlocal" % line[2]).read() Actually here I didn't use any file handler and I didn't close file handler. regards Prabahar