PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Linux bash &Python & Alias For Getting External IP

Go down

Linux bash &Python & Alias For Getting External IP Empty Linux bash &Python & Alias For Getting External IP

Post by jamied_uk 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'



https://jnet.forumotion.com/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
https://jnet.forumotion.com/t1130-linux-bash-python-alias-for-getting-external-ip#1514
jamied_uk
jamied_uk
Admin

Posts : 2943
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

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

Post by jamied_uk 20th May 2016, 19:05

Do this with Bash

jamied_uk
jamied_uk
Admin

Posts : 2943
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

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