Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- url="https://filmsbykris.com/scripts/2022/medlist"
- submit="$url/submit.php"
- stations="$url/stations.php"
- names="$url/names.php"
- items="$url/medical_items.php"
- station="$(wget -qO- "$stations"|fzf --prompt "Select a Station: ")"
- name="$(wget -qO- "$names"|sort|fzf --prompt "Select Your Name: ")"
- items="$(wget -qO- "$items")"
- while [ 1 ]
- do
- item="$((echo -e "QUIT\n$items")|fzf --prompt "Select An Item to Order: ")"
- [[ "$item" == "QUIT" ]] && break
- qty="$(echo {0..100}|tr " " "\n"|fzf --prompt "How Many: ")"
- wget -qO- "$submit?station=$station&name=$name&item=$item&qty=$qty"
- echo ""
- sleep 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement