Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Parallel Pinging, using Python Threads or Expect spawn lists

Ping is a very useful command to use within scripts for checking the presence (or absence) of a live system on our network, or indeed on the Internet. However, there are subtle differences in the format of its report on different operating system flavors, so any code that you write that needs to analyse the results may need to be tuned when you re-host.

Here are some similar (but different!) ping responses, by way of example:



earth-wind-and-fire:~ grahamellis$ ping -q -c2 192.168.200.65
PING 192.168.200.65 (192.168.200.65): 56 data bytes

--- 192.168.200.65 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
earth-wind-and-fire:~ grahamellis$



-bash-3.2$ ping -q -c2 192.168.200.65
PING 192.168.200.65 (192.168.200.65) 56(84) bytes of data.

--- 192.168.200.65 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

-bash-3.2$



wellcouk@tornado:~/public_html$ ping -q -c2 192.168.200.65
PING 192.168.200.65 (192.168.200.65): 56 octets data

--- 192.168.200.65 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
wellcouk@tornado:~/public_html$



Many people find our Python scripts alive, kicking, fullrange and fullandfast useful - both as demonstrations of threading in Python and for live system checking but you do need to change the scripts if you use them to reflect the OS on which you're running!

The same need to tailor applies to Tcl / Expect scripts such as our basic expect example, our Tcl /expect parallel ping examples - we have them already modified for Caldera and Red Hat. Finally, ours Tk example for Linux may also need a little tailoring depending on your Linux flavor!
(written 2009-11-02, updated 2010-11-03)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
Y302 - Python - Threads - What why and how
  [903] Pieces of Python - (2006-10-23)

T212 - Tcl/Tk - Expect Processes
  [287] Checking that all our servers are up and accessible - (2005-04-22)
  [675] Adding PHP tags to an old cgi program - (2006-04-08)
  [1173] Cheat Sheet / Check list for Expect maintainers - (2007-05-02)
  [1785] What is running on your network? (tcl and expect) - (2008-09-04)
  [2474] Using Tcl and Expect to automate repetitive jobs - (2009-10-24)
  [3448] Checking all the systems on a subnet, using Expect and Tk - (2011-09-18)
  [4678] Expect with Ruby - a training example to get you started - (2016-05-18)

T211 - Tcl/Tk - What is Expect? Why use it?
  [286] Automating regular manual procedures - (2005-04-21)
  [435] Expect for Windows - (2005-09-04)
  [1174] Installing Tcl and Expect on Solaris 10 - a checklist - (2007-05-02)
  [1409] What is Expect? - (2007-10-26)
  [1411] Buffering of inputs to expect, and match order - (2007-10-27)
  [1469] Curley brackets v double quotes - Tcl, Tk, Expect - (2007-12-12)
  [1531] Expecting a item from a list of possibles - (2008-02-04)
  [1602] Automating processes through Expect - (2008-04-05)
  [3009] Expect in Perl - a short explanation and a practical example - (2010-10-22)
  [3286] Should we cover expect and/or Tk on our public Tcl courses? - (2011-05-11)
  [3572] Adding Expect on top of Tcl - what is it and where can I get a training course to learn about it? - (2012-01-08)
  [4405] Backup procedures - via backup server - (2015-01-24)

A163 - Web Application Deployment - Network Configuration and Security
  [11] A bolt of lightning on Multicasting - (2004-08-11)
  [37] Security and Safety - (2004-09-03)
  [267] Searching security holes - (2005-04-04)
  [332] Looking up IP addresses - (2005-06-01)
  [506] What are DHCP and DNS? - (2005-11-27)
  [511] Domain Forwarding - 2 ways of doing it - (2005-11-29)
  [1073] Heartbeat script in Perl - (2007-02-09)
  [1408] Wireless hotel tips - FTP and Skype connections failing - (2007-10-26)
  [1666] Slow boot and terminal start on Linux boxes - (2008-06-05)
  [1712] As different as night and tyres - (2008-07-18)
  [1904] Ruby, Perl, Linux, MySQL - some training notes - (2008-11-23)
  [2052] How was my web site compromised? - (2009-02-24)
  [4134] Setting up your MacBook Air as a mobile broadband router - (2013-07-07)


Back to
A variable number of arguments in a PHP function
Previous and next
or
Horse's mouth home
Forward to
Friendly Hotel in Melksham, near Bath
Some other Articles
Melksham buses to/from Chippenham, Trowbridge, Bath, Devizes, London
Lua Classes - open enrolement
Root is root for a reason!
Friendly Hotel in Melksham, near Bath
Parallel Pinging, using Python Threads or Expect spawn lists
A variable number of arguments in a PHP function
Melksham Forum
Santa Special - Trowbridge and Melksham to Swindon
How do I set up a constant in Python?
Finding text and what surrounds it - contextual grep
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.info/mouth/2489_Par ... lists.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb