Re: [Tutor] Finding Hostname-IP DNS mappings and if machine is dead or alive

2014-05-12 Thread Alex Kleider
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

Re: [Tutor] Finding Hostname-IP DNS mappings and if machine is dead or alive

2014-05-12 Thread Danny Yoo
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

Re: [Tutor] Finding Hostname-IP DNS mappings and if machine is dead or alive

2014-05-12 Thread Emile van Sebille
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

[Tutor] Finding Hostname-IP DNS mappings and if machine is dead or alive

2014-05-12 Thread KIRAN D.S.
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 ===