View Single Post
Posts: 540 | Thanked: 387 times | Joined on May 2009
#9
Yup
Code:
flight_status() { if [[ $# -eq 3 ]];then offset=$3; else offset=0; fi; wget -O - "http://mobile.flightview.com/TrackByRoute.aspx?view=detail&al="$1"&fn="$2"&dpdat=$(date +%Y%m%d -d ${offset}day)" 2>/dev/null |html2text |grep ":"; }
works fine, hmm maybe I should tinker with it and get it working using busybox date and eliminate more dependencies....
 

The Following User Says Thank You to linuxeventually For This Useful Post: