【问题标题】:Shell script help to post local and external ip of my laptopShell脚本帮助发布我的笔记本电脑的本地和外部IP
【发布时间】:2011-05-20 15:24:54
【问题描述】:

我不确定如何使用 wget 有人可以帮助我使用 shell 脚本将笔记本电脑的本地和外部 ip 发布到外部网站吗? (GET 和 POST 方法)

【问题讨论】:

  • 你能给我们一个例子,说明你希望它如何工作,或者你可以在其他情况下做“这个和那个”,你希望这个 GET/POST 以同样的方式工作.对我来说,目前尚不清楚您要达到的目标。祝你好运!

标签: shell http-post wget http-get


【解决方案1】:
curl http://www.whatismyip.com/automation/n09230945.asp
ifconfig  | grep "inet addr" | fgrep -v 127.0.0.1 | tr ':' " " | awk '{print $3;}'

【讨论】:

    猜你喜欢
    • 2022-11-04
    • 1970-01-01
    • 2017-06-20
    • 2022-01-25
    • 2016-02-03
    • 2020-09-27
    • 2019-07-30
    • 2015-10-31
    • 2011-02-18
    相关资源
    最近更新 更多