Skip to content Skip सामग्री के लिए


How to post to Twitter from the Linux command line कैसे Linux कमांड लाइन से चहचहाना पोस्ट करने के लिए

लिनक्स

Twitter has become a big part the online lives of a lot of people in the recent months. चहचहाना एक बड़ा हिस्सा बन गया है हाल के महीनों में बहुत सारे लोग के ऑनलाइन रहती है. Although in itself Twitter is a pretty simple service, which makes it easy for just about everyone to use it, it ships with an API which has helped people port it to just about every platform. हालांकि चहचहाना अपने आप में एक बहुत आसान सेवा है, जो यह आसान के लिए बस सब के बारे में यह एक एपीआई के साथ, यह जहाज का प्रयोग, जो यह लोगों को बंदरगाह में मदद मिली है बनाता है बस हर मंच के बारे में. Twitter has been ported to web browsers, to cellphones, and apparently even चहचहाना वेब ब्राउज़र पर रखी गई है, सेलफोन, और जाहिरा तौर पर भी washing machines वाशिंग मशीन haven't been spared. बख्शा नहीं किया गया है. The Linux command line has always been a favorite of geeks. Linux कमांड लाइन हमेशा geeks का पसंदीदा रहा है. Here's a trick that's great fun, and could be useful if required. यहाँ एक चाल है कि बहुत मज़ा, और उपयोगी हो सकता है यदि आवश्यक है.

Let's see how to post an update to your Twitter account right from the Linux command line. देखते हैं कैसे Linux कमांड लाइन से आपके चहचहाना खाते अधिकार एक अद्यतन पोस्ट करने के लिए. This will also work on the MacOS X command line. यह भी MacOS X कमांड लाइन पर काम करेंगे. Enter the following command in your terminal interface, replacing username and password with your Twitter account credentials, and status="Tweeting from the Linux command line" with your own message. अपने टर्मिनल इंटरफ़ेस में निम्न कमांड दर्ज करें, आपके खाते की पहचान के साथ चहचहाना उपयोगकर्ता नाम और पासवर्ड की जगह है, और स्थिति = "अपने संदेश के साथ Linux कमांड लाइन" से Tweeting.

# curl -u username:password -d status="Tweeting from the Linux command line" http://twitter.com/statuses/update.xml > /dev/null # कर्ल-u प्रयोक्ता नाम: पासवर्ड-d स्थिति = "Linux कमांड लाइन" http://twitter.com/statuses/update.xml> / dev से Tweeting / बातिल

So if your Twitter username is fuzzycat17 and you password is fur123ball the above command will look like this: तो अगर आपके चहचहाना उपयोगकर्ता नाम fuzzycat17 है और आप है ऊपर कमांड fur123ball इस तरह दिखेगा पासवर्ड:

# curl -u fuzzycat17:fur123ball -d status="Tweeting from the Linux command line" http://twitter.com/statuses/update.xml > /dev/null # कर्ल-fuzzycat17 u: fur123ball-d स्थिति = "Linux कमांड लाइन" http://twitter.com/statuses/update.xml> / dev से Tweeting / बातिल

Running this command will result in a new Tweet being posted from your account containing the words Tweeting from the Linux command line इस कमान रनिंग एक नया कलरव में परिणाम आपके खाते से पोस्ट किया जा रहा है जिसमें लिनक्स कमांड लाइन से Tweeting शब्द

Now go check your Twitter home page to see if the Tweet was posted correctly. अब जाओ अपने चहचहाना घर पृष्ठ में देखें तो कलरव सही ढंग से तैनात थे.

As I said, this trick could be completely for geekish fun, or could be put to good use. जैसा कि मैंने कहा, इस चाल पूरी तरह geekish मज़ा के लिए, या सकता है अच्छा इस्तेमाल किया जा सकता है. You could integrate this command into shell script to notify you of something. तुम खोल स्क्रिप्ट में इस कमान के एकीकृत आप से कुछ की सूचना सकता है.

Happy Tweeting. खुश Tweeting.

Posted in पोस्ट में Linux लिनक्स . .

Get Simple Help tutorials just like this one in your email inbox every day - for free! बस अपने ईमेल इनबॉक्स के लिए मुफ्त हर दिन - में यह एक तरह सरल सहायता ट्यूटोरियल जाओ! Just enter your email address below: बस नीचे अपना ईमेल पता दर्ज करें:

You can always opt out of this email subscription at any time. तुम हमेशा इस ईमेल सदस्यता से बाहर किसी भी समय विकल्प चुन सकते हैं.

3 Responses 3 जवाब

Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .

  1. wock says wock कहते हैं,

    Its cool tips, thx. अपनी शांत सुझाव, thx. How to make a script that implements these steps? कैसे एक स्क्रिप्ट है कि इन कदमों को लागू करने के लिए?

  2. Jon Payne जॉन पायने says कहते हैं,

    Can I assume that aa direct message or @ reply would simply be added to the sent string? मैं आ सीधे संदेश या उत्तर @ मान सकते हैं बस भेजा स्ट्रिंग में जोड़ा जाएगा? For example curl -u fuzzycat17:fur123ball -d status=”@somename Tweeting from the Linux command line” उदाहरण के लिए कर्ल-fuzzycat17 u: fur123ball-= "Linux कमांड लाइन से Tweeting somename @ स्थिति घ" http://twitter.com/statuses/update.xml http://twitter.com/statuses/update.xml > /dev/null; or status=”d somename . > / / Dev रिक्त, या स्थिति = "somename घ. . . . . "

    True? सच है?

Continuing the Discussion चर्चा सतत

  1. Tweet from the command line « Linux & Stuff कमांड लाइन «लिनक्स और सामग्री से चहक linked to this post on May 6, 2009 6 मई 2009 पर इस पोस्ट के लिए लिंक

    [...] in CLI, twitter Nice little trick from Simple Help. CLI, चहचहाना में [...] अच्छा साधारण सहायता से थोड़ा चाल. I tried this and it works perfectly. मैं यह करने की कोशिश की और यह अच्छी तरह से काम करता है. Only problem is there's nothing to tell you you gone [...] केवल समस्या यह है की कोई बात नहीं तुम बताओ कि तुम हो गया है [...]



Some HTML is OK कुछ HTML है ठीक है

or, reply to this post via या, इस पोस्ट के माध्यम से जवाब trackback Trackback . .