View Single Post
  #4   (View Single Post)  
Old 13th November 2018
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Nice indeed!

BTW, you don't always need to install curl. For instance, you could rewrite the wttr.in example so that it works with the ftp command in the base system like this:
Code:
#!/bin/ksh
xterm -g 125x46-1+38 -T "Yakima, WA Weather" -hold -e "ftp -VM -o - -U curl/7. http://wttr.in/~Yakima+WA"
The ftp options explained:
  • -V # disable verbose mode
  • -M # don't display progress meter
  • -o - # redirect output to STDOUT
  • -U curl/7. # set user-agent to curl/7. <---- this is where the magic happens
Reply With Quote