Admin posted on March 19, 2009 11:03

A inspiração para essa brincadeirinha veio deste post do fechaTag. Fiz o mesmo, com algumas adaptações para o FreeBSD.

Baixando e instalando o curl

A instalação do curl é através do Ports, o gerenciador de pacotes do FreeBSD.

  • Primeiro,  logue-se como root.
  • Entre no diretório /usr/ports
  • Putz, onde será que está o diretório do curl? Fácil!
    •  find . -name "curl" -type d
  •  A resposta é imediata: ./ftp/curl
  • Agora que descobri onde estava o diretório do curl, entro nele:
    •  cd ftp/curl
  • Para baixar, compilar e instalar, digite:
    •  make install
  • Deve aparecer uma janela de configuração, deixe marcado apenas "OpenSSL support" e dê Ok.
  • Aguarde baixar, compilar e instalar.  ; )

Começando a brincadeira

É simples, muito simples "twittar" pelo console. Basta um comandinho (chupinhado do post do fechaTag):

curl -u usuário:senha -d status="Twittando do terminal." http://twitter.com/statuses/update.json

Já que o comando tá muito grande, dá para enxugar um pouco. Siga os passos do post do fechaTag, não tem erro... Feito isso, basta o comandinho:

twitter "Twittando pelo terminal do FreeBSD, API show de bola hein..."

Bom, com isso dá para criar bastante coisa interessante, como por exemplo enviar mensagens de erro para o Twitter quando acontecer alguma coisa de errado com o sistema... É só ter criatividade.


Posted in: Linux/Unix  Tags: , ,

Comments


December 28. 2009 02:08
quick loans
Hey I love your style I will subscribe for your feed please keep posting!

http://www.globalpaydayloans.com/http://www.globalpaydayloans.com/


January 9. 2010 12:04
nicole miller bridal 2008
Thanks for this great post. I have implemented it like your post says.

http://www.runnymederoad.info/nicole-miller-bridal-2008.phphttp://www.runnymederoad.info/nicole-miller-bridal-2008.php


February 9. 2010 12:16
personal loans
Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post.

http://www.globalpaydayloans.com/http://www.globalpaydayloans.com/


February 11. 2010 14:03
teeth whitening products
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

http://www.super-teeth-whitening.net/http://www.super-teeth-whitening.net/


February 14. 2010 00:59
Colon cleansers
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

http://www.super-colon-cleanses.com/http://www.super-colon-cleanses.com/


February 20. 2010 06:16
Acne scar treatment
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It?s the old what goes around comes around routine.

http://www.super-acne-treatment.com/http://www.super-acne-treatment.com/


February 25. 2010 10:01
payday loans
I don’t usually reply to posts but I will in this case. WoW Smile

http://www.sonicloans.net/http://www.sonicloans.net/


February 25. 2010 15:26
paydayloans
There are certainly a lot of details like that to take into consideration.

http://www.sonicloans.net/http://www.sonicloans.net/


February 27. 2010 06:38
personal loans
Wow! Thank you! I always wanted to write in my site something like that.

http://www.flyingloans.com/http://www.flyingloans.com/


February 27. 2010 09:49
personal loans
Wow! Thank you! I always wanted to write in my site something like that.

http://www.flyingloans.com/http://www.flyingloans.com/

Páginas

Calendário

«  September 2010  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
View posts in large calendar