diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 19:50:07 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 19:50:07 +0100 |
commit | d8eafc869d35daee2535c9bc856d111457ece7d1 (patch) | |
tree | 9b2ef8e574600fb307fd26396d58a65d84c9ed26 /flight_status.ksh | |
parent | 4490faf95d801af699882a2b1dfc48c62b96dbac (diff) |
added flight status
Diffstat (limited to '')
-rwxr-xr-x | flight_status.ksh | 8 |
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 |