aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-09-09 14:29:09 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-09-09 14:29:09 +0100
commit3e3664b0ba1fab9ab2eed2796975d9edaafb1a32 (patch)
treef82c05a85220dce254b3412905efcd6764154e79
parent5ed7cdfd4ac59105ccf927a7f77816264402d6d9 (diff)
parentd8eafc869d35daee2535c9bc856d111457ece7d1 (diff)
Merge branch 'master' of gitlab.com:yulqen/bash-scripts
Diffstat (limited to '')
-rwxr-xr-xflight_status.ksh8
1 files changed, 8 insertions, 0 deletions
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