Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7771507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:40:10+00:00 2026-06-01T16:40:10+00:00

http://www.geoiptool.com/en/?IP= I need some help to write a bash script that will allow me

  • 0

http://www.geoiptool.com/en/?IP=

I need some help to write a bash script that will allow me to pass any given IP to this URL. The site above is URL I’d like to my script to call. Can someone get me started? Thanks!

I’d like to use my script like this: echo IP_ADDRESS | geoiptool

When I echo an IP and pipe it to my script, I get this error below. Is that because
the pipe command is not installed?

-bash-3.2$ echo 173.192.108.135 | geo
-bash: echo: write error: Broken pipe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:40:12+00:00Added an answer on June 1, 2026 at 4:40 pm

    I’d recommend using a command line parameter instead of reading from stdin. You can use $1 to refer to the first parameter, $2 for the second, etc.

    #!/bin/bash
    curl -s http://www.geoiptool.com/en/?IP=$1
    

    Then you just fire it by:

    geoiptool <IP>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.red-gate.com/products/dotnet-development/smartassembly/ Is there a program like smartassembly for C++ that will remove all unneeded
http://www.youtube.com/watch?feature=endscreen&amp;NR=1&amp;v=Ahha3Cqe_fk For some reason, the string is that. How can I change the &amp;
http://www.ddrewdesign.com/portfolio/ I've run that on three different VMs and my brother's regular (and very
http://www.ericmmartin.com/projects/simplemodal/ There's two examples near the bottom of the page that show how to
http://www.example.com/http://www.test.com I have tried many different methods using .htaccess with no luck. I need
http://www.codeplex.com/IIRF/Thread/List.aspx My webhost installed IIRF for me and I am convinced that they did
http://www.xsracing.org/test2/ I am working on that site, and for some reason in the version
Currently I've been using http://www.geoiptool.com/ but I can't get the local time. I don't
http://www.malsup.com/jquery/corner/ Is there any real disadvantage (like SEO) to creating the rounded corners pixel
http://www.e-fluential.com/offline/ Screen grab: I can't get the div that the blue words blah blah

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.