LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

小技巧:从命令行发布 Twitter 消息

你用什么方式发布 Twitter 消息?从 Twitter 网站,还是 Twitter 客户端?Download Squad 介绍了一个从命令行发布 Twitter 消息的实用技巧,想必惯用命令行的朋友会喜欢。要使用该技巧,我们需要一个名为 curl 的命令行工具。如果在你的 Linux 系统中无法找到 curl,可通过包管理工具搜索并安装它。

Curl

当你需要从命令行发布 Twitter 消息时,只需按如下格式输入即可:

curl -u 帐号:密码 -d status="要发布的消息" http://twitter.com/statuses/update.xml

[via Download Squad]

署名 • 注明出处 • 非商业性使用

10 Comments

  1. 1 su27 Commented @ 2008-03-09 11:16 amReply to this comment

    叽歪也可以同样命令发布。

    饭否不知是否也是?

  2. 2 eagle Commented @ 2008-03-09 12:44 pmReply to this comment

    叽歪后面的http:应该是什么?

  3. 3 rhfcaesar Commented @ 2008-03-09 12:48 pmReply to this comment

    什么东西??不懂。

  4. 4 YZard Commented @ 2008-03-09 4:14 pmReply to this comment

    我到现在还不知道什么是twitter

  5. 5 fcicq Commented @ 2008-03-09 5:04 pmReply to this comment

    饭否的文档不错…
    http://help.fanfou.com/api.html#easiestway

  6. 6 leeight的马甲 Commented @ 2008-03-09 5:17 pmReply to this comment

    这个不错

  7. 7 shelling Commented @ 2008-03-09 9:30 pmReply to this comment

    curl 比較不是專門來做這件事的
    cpan 和 gem 裡都有專用 script
    他們可以做更多事

  8. 8 wangj Commented @ 2008-03-09 11:30 pmReply to this comment

    饭否可以,俺已经这样干很久料

  9. 9 AndyWxy Commented @ 2008-03-15 11:55 amReply to this comment

    用了个,饭也可。哈~

  10. 10 wuyuntao Commented @ 2008-03-16 12:38 pmReply to this comment

    把脚本扔到crontab里,就可以自动更新twitter了
    我写了个在twitter上自动奥运倒计时的脚本。。。
    http://luliban.com/blog/2008/03/twitter.html