Linux bash &Python & Alias For Getting External IP

View previous topic View next topic Go down

Linux bash &Python & Alias For Getting External IP

Post by jamied_uk on 19th April 2016, 01:02



example for

Code:
curl ifcfg.me



alias this shell script

Setup

Code:
sudo chmod +x ext_ip.sh



example usage:
Code:
./ext_ip.sh



or

Code:
bash ext_ip.sh



Or Alias with this command

Code:
alias get_ip='curl ifcfg.me'



http://jnet.forumn.biz/t574-example-of-how-to-setup-an-alias-from-the-cli-on-linux?highlight=alias
    

Box Files
https://app.box.com/s/th1d3becpnjks6jz4knpfgyonbulw8p0

Forum Link
http://jnet.forumn.biz/t1130-linux-bash-python-alias-for-getting-external-ip#1514
avatar
jamied_uk
Admin

Posts : 2184
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Linux bash &Python & Alias For Getting External IP

Post by jamied_uk on 20th May 2016, 19:05

Do this with Bash

avatar
jamied_uk
Admin

Posts : 2184
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum