A command to post a message and an auto-shortened link to Twitter. The link shortening service is provide by TinyURL.

curl --user "USERNAME:PASSWORD" -d status="MESSAGE_GOES_HERE $(curl -s http://tinyurl.com/api-create.php?url=URL_GOES_HERE)" -d source="cURL" http://twitter.com/statuses/update.json -o /dev/null
A command to post a message and an auto-shortened link to Twitter. The link shortening service is provided by TinyURL.

By: o0110o
2010-01-11 00:59:13

What Others Think

rachel12 · 98 weeks ago
I am so fascinated by your amazing article... cyberghost vpn
rachel12 · 98 weeks ago
I got a lot of technical information from your post!! purevpn promocodes 2020 keep sharing this kind of amazing post proton vpn coupon 2020
rachel12 · 98 weeks ago
Digital marketing is so important for our business as compared to the traditional marketing. As there are many reasons behind it. I appreciate them for sharing this content either us but students can get dissertation services to finish the task. As people are more prone to use social networking sites these days so it is easier to capture them through digital marketing.
MaryKlein · 68 weeks ago
Hi, it's really amazing post. By the way, do you know you can earn money by playing and winning some simple games? If yes the gambling site is best for you, well do you know where I can get it interac casinos then please let me know. Thanks for sharing this amazing post with us.
AmandaJEdney · 60 weeks and 3 days ago
As an employee of digital marketing agency Toronto, i always used this command for shorter url.
faddyshane · 16 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: