Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
TCPConnectPreflightCheck.ps1
TCPConnectPreflightCheck.sh

README.md

Mission Impossible Coding: Minimal, Universal TCP Connect Preflight Check

  • Mission Impossible Code = Get the job done every time.
  • Minimal = Smallest amount of code to get the job done (yes this creates friction with "Universal").
  • Universal = Works on most possible editions / versions of the target environment.
  • Universal = Frequently provided as both Bash and PowerShell.
  • Universal = In this case the bash works on Linux and Windows and the PowerShell works on Linux and Windows.

Checkout the Mission Impossible Coding Blog series that this code is a part of:

Mission Impossible Code Part 2: Extreme Multilingual IaC (via Standard Code for Preflight TCP Connect Testing a List of Endpoints in Both Bash and PowerShell)

Related Mission Impossible Code and Philosophy

Back to Basics: Testable Reference Pattern Manifesto (With Testable Sample Code) - Mission Impossible Code samples are intended to be both 1) usable directly for production use and 2) a top notch pattern to use for your own innovation.

Tested On

PowerShell Version (Windows and Linux)

  • PowerShell 5.1 on Windows 10
  • PowerShell Core 7.0.0.2 on Windows 10
  • PowerShell Core 6.2.1 on Amazon Linux 2 in Docker on Windows 10
  • PowerShell on Azure CloudShell

Bash Version (Windows and Linux)

  • Ubuntu 18.04.1 LTS in WSL on Windows 10
  • Amazon Linux 2 in Docker on Windows 10
  • Bash on Azure CloudShell
You can’t perform that action at this time.