From d8eafc869d35daee2535c9bc856d111457ece7d1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 26 Jul 2022 19:50:07 +0100 Subject: added flight status --- flight_status.ksh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 flight_status.ksh diff --git a/flight_status.ksh b/flight_status.ksh new file mode 100755 index 0000000..d6eecc0 --- /dev/null +++ b/flight_status.ksh @@ -0,0 +1,8 @@ +#!/bin/ksh + +flight_status() { + curl --silent --stderr - "https://mobile.flightview.com/TrackByRoute.aspx?view=detail&al=$1&fn=$2&dpdat=$(date +%Y%m%d)" | + html2text | grep -A19 "Status" ; +}; + +flight_status $1 $2 -- cgit v1.2.3