On 2014-05-12 16:36, Danny Yoo wrote:
For command line processing, look into argparse:
https://docs.python.org/2/howto/argparse.html#id1
Although the above is the standard library recommended solution, I would
recommend you try docopt instead.
http://docopt.org/
https://github.com/docopt
On Mon, May 12, 2014 at 2:44 PM, KIRAN D.S.
wrote:
> Hi,
>
> I have a UNIX shell script that:
> a. lists out the Hostname-IP DNS mappings
> b. checks whether the machine is pingable, and prints "dead" or "alive"
> depending on status.
There will be a few things you'll want to look at. In parti
How far have you gotten? Post your code to show us where you're at and
we can point you in the right direction.
Emile
On 5/12/2014 2:44 PM, KIRAN D.S. wrote:
Hi,
I have a UNIX shell script that:
a. lists out the Hostname-IP DNS mappings
b. checks whether the machine is pingable, and print
Hi,
I have a UNIX shell script that:
a. lists out the Hostname-IP DNS mappings
b. checks whether the machine is pingable, and prints "dead" or "alive"
depending on status.
I want to write this program in Python but am struggling. Can someone help
please ?
Here's my script and output run
===