How to call a method returning a value from a main function

2016-09-27 Thread prasanth kotagiri
#!/sur/bin/env python import sys import jwt import argparse from calendar import timegm from datetime import datetime import uuid class TokenGenerator: def __init__(self, args): self.macKey = args.authzSystemMacKey self.authzSystemId = args.authzSystemId self.permissio

Re: Pinging a machine from python

2008-07-21 Thread Prasanth
On May 26, 5:21 am, Zerge <[EMAIL PROTECTED]> wrote: > On May 25, 11:13 am, Prasanth <[EMAIL PROTECTED]> wrote: > > > I tried pinging a machine from python using socket programming but > > could not do it. Is there any module which we can use to ping the > >

Pinging a machine from python

2008-05-25 Thread Prasanth
I tried pinging a machine from python using socket programming but could not do it. Is there any module which we can use to ping the machine < like net::ping in perl> or can you give me simple program. -- http://mail.python.org/mailman/listinfo/python-list