Results 11 to 11 of 11
As long as whatismyip.com prints out your IP-Address in the HTML page title, you can use this:
Create shell script:
Code:
cd ~
mkdir bin
nano bin/whatismyip.sh
Insert this into ...
- 08-15-2007 #11Just Joined!
- Join Date
- Aug 2007
- Posts
- 1
As long as whatismyip.com prints out your IP-Address in the HTML page title, you can use this:
Create shell script:
Insert this into nano:Code:cd ~ mkdir bin nano bin/whatismyip.sh
Press Ctrl + O, Enter, Ctrl + X, then run:Code:#!/bin/bash echo Your external IP Address is: wget http://Www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g' exit 0
Now you can check your external IP Address by running:Code:chmod u+x bin/whatismyip.sh
Code:~/bin/whatismyip.sh



