Created
April 25, 2020 04:41
-
-
Save iboss-ptk/1459ebbad09d254c8cc2b377009d82b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test() { | |
| curl -s https://tracker.lel.asia/tracker?trackingNumber=LEXPU029939203 | tr '\n' ' ' | tr -s ' ' | grep "journey__step _step-5 _done" > /dev/null | |
| } | |
| while : | |
| do | |
| test | |
| if [ $? -eq 0 ] | |
| then | |
| break | |
| fi | |
| clear -x | |
| printf "> PENDING.\r" | |
| sleep 1 | |
| printf "> PENDING..\r" | |
| sleep 1 | |
| printf "> PENDING...\r" | |
| sleep 1 | |
| done | |
| say -v Kanya "ของมาส่งแล้วค่า" | |
| osascript -e 'display alert "Tracker" message "Your headphone has arrived!!"' > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment