Some practice question - working with servers
Hello everyone,
I would like to have some help with some questions I encountered lately: 1. Write a command that shows how many hops you have between your machine and google.com. 2. Using this API: http://api.open-notify.org/ a - Write a command that shows how many people are in space in any moment. b - Write a command that prints the current longitude of the international space station. 3. Using this: https://raw.githubusercontent.com/Bi...r/pokedex.json a - write a command that prints the number of Pokemons available in Pokedex. b - Write a command that prints all the height of the Pokemons from the lowest to the tallest. c - Who is the tallest Pokemon? 4. Using this: https://ipapi.co/<ip>/json a - write a command that prints the country where the server of which one of the following addresses is located: amazon.com, amazon.co.uk, amazon.de, amazon.co.jp b - Are those servers are located in their country? Thanks |
Welcome to LQ!
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member. Please review the Site FAQ for guidance in asking well formed questions. Especially visit the link from that page, How to Ask Questions the Smart Way for discussion of things to consider when asking others for help. |
Cross-posts @linux.org and @SO (closed).
Nice APIs they have out there. I didn't count the lines of traceroute output as this would be too easy, but did all the other exercises with curl and jq. See below (I printed only the three shortest and the tallest Pokemon): Code:
#!/bin/sh |
Quote:
Code:
traceroute www.google.com | wc -l |
@dugan. Off by one. The first line is the header, at least in my version of traceroute.
|
All times are GMT -5. The time now is 08:39 AM. |