How to tweet using terminal?
Clash Royale CLAN TAG#URR8PPP
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems this isn't working anymore.
I get a error like this one:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="53">Basic authentication is not supported</error>
</errors>
So, how could we tweet from the terminal?
PS.: my motivation to this is because I use the Yakuake terminal a lot, and it would be awesome to tweet from there.
shell-script command-line curl
add a comment |
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems this isn't working anymore.
I get a error like this one:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="53">Basic authentication is not supported</error>
</errors>
So, how could we tweet from the terminal?
PS.: my motivation to this is because I use the Yakuake terminal a lot, and it would be awesome to tweet from there.
shell-script command-line curl
add a comment |
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems this isn't working anymore.
I get a error like this one:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="53">Basic authentication is not supported</error>
</errors>
So, how could we tweet from the terminal?
PS.: my motivation to this is because I use the Yakuake terminal a lot, and it would be awesome to tweet from there.
shell-script command-line curl
I would like to tweet a message using terminal.
I tried something like:
curl -u 'TwitterUsername':'TwitterPassword' -d status=”Your Message Here” https://twitter.com/statuses/update.xml
but seems this isn't working anymore.
I get a error like this one:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error code="53">Basic authentication is not supported</error>
</errors>
So, how could we tweet from the terminal?
PS.: my motivation to this is because I use the Yakuake terminal a lot, and it would be awesome to tweet from there.
shell-script command-line curl
shell-script command-line curl
edited Jul 18 '14 at 13:51
Braiam
23.5k2077140
23.5k2077140
asked Jul 1 '12 at 16:27
GarouDanGarouDan
4671123
4671123
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
This error message is because Twitter needs OAuth for authentication. Take a look at TTYtter if you don't mind a Perl app:
Noooo, not another Twitter client! Yes, another Twitter client. The difference here is that you're dealing with a multi-functional, fully 100% text, Perl command line client.
- In interactive mode, it is a fully interactive client with asynchronous background updates and commands. Use it over telnet, ssh or even a dummy terminal. Supports Streaming API, ANSI colour, UTF-8, hashtags and Twitter Search!
- Works within your favourite environment: use a compatible readline library (like our own bespoke Term::ReadLine::TTYtter), or modify prompt and input methods for many popular window and session managers. Or don't: basic editing and screen management features built-in.
- From the command line, use it to update your Twitter in shell scripts, from cron, and so on.
- Security: Supports Twitter OAuth and HTTP Basic Authentication, and SSL where supported by your user agent.
- Notification support with Growl and libnotify (and extendable to others via the API).
- Geolocation support: hand your GPS coordinates to TTYtter for any application.
- Lists support, including fast creation and modification, and merging lists with your timeline as "custom timelines."
- Supports Twitter-alike APIs such as StatusNet and Identi.ca.
- Supports standard timelines and automatically fetches direct messages, and optionally replies/mentions, and runs queries against the Search API and incorporates them into your timeline as well.
- New and old re-tweet support.
- Write and use your own custom extensions!
- Run detached in -daemon mode, and make your own Twitter bot!
TTYtter has been deprecated. Development now continues in the fork, oysttyer.
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
add a comment |
Try T. Very powerful, easy to use and written in Ruby.
For example, you can tweet directly from the terminal, by executing:
t update "I'm tweeting from the command line."
add a comment |
2016 Update
There is a project called Twurl - an OAuth-enabled curl for the Twitter API:
Twurl is like curl, but tailored specifically for the Twitter API. It
knows how to grant an access token to a client application for a
specified user and then sign all requests with that access token.
It also provides other development and debugging conveniences such as
defining aliases for common requests, as well as support for multiple
access tokens to easily switch between different client applications
and Twitter accounts.
Instead of this from the question:
curl -d status="Your Message Here" https://twitter.com/statuses/update.xml
you use something like this:
twurl -d status="Your Message Here" /1.1/statuses/update.json
after you authorize yourself first as explained in the readme.
(note that you don't have to use the protocol and hostname in the URL as you would with curl)
This program was originally written by Marcel Molina who worked at Twitter at that time and it is now an official Twitter project on GitHub.
Many people are asking specifically how to use curl to use the Twitter API and twurl is probably the closest to curl as you can get today.
add a comment |
Try twidge
.
sudo apt install twidge
twidge setup
twidge update "Trying tweeting from linux command line - twidge."
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
add a comment |
Take a look at Rainbow Stream - smart/beautiful and written in Python.
It provides a rainbow shell which can start by
$ rainbowstream
and inside the app, updating a status is quite easy with
[@yourTwitterName]: t tweeting from #rainbowstream
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
add a comment |
I have created a Twitter client that can tweet from the command line, as mentioned at Software Recommendations.
To tweet a message
java -jar EmailTweetor.jar tweet hello.txt
or
echo "Hello" | java -jar EmailTweetor.jar tweet
To tweet with an image:
java -jar EmailTweetor.jar tweet hello.txt image.jpg
The computer where the command is launched will need to have OpenJDK or Oracle Java v1.8 or later. The JAR also needs a one-time authorization with Twitter.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f42052%2fhow-to-tweet-using-terminal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
This error message is because Twitter needs OAuth for authentication. Take a look at TTYtter if you don't mind a Perl app:
Noooo, not another Twitter client! Yes, another Twitter client. The difference here is that you're dealing with a multi-functional, fully 100% text, Perl command line client.
- In interactive mode, it is a fully interactive client with asynchronous background updates and commands. Use it over telnet, ssh or even a dummy terminal. Supports Streaming API, ANSI colour, UTF-8, hashtags and Twitter Search!
- Works within your favourite environment: use a compatible readline library (like our own bespoke Term::ReadLine::TTYtter), or modify prompt and input methods for many popular window and session managers. Or don't: basic editing and screen management features built-in.
- From the command line, use it to update your Twitter in shell scripts, from cron, and so on.
- Security: Supports Twitter OAuth and HTTP Basic Authentication, and SSL where supported by your user agent.
- Notification support with Growl and libnotify (and extendable to others via the API).
- Geolocation support: hand your GPS coordinates to TTYtter for any application.
- Lists support, including fast creation and modification, and merging lists with your timeline as "custom timelines."
- Supports Twitter-alike APIs such as StatusNet and Identi.ca.
- Supports standard timelines and automatically fetches direct messages, and optionally replies/mentions, and runs queries against the Search API and incorporates them into your timeline as well.
- New and old re-tweet support.
- Write and use your own custom extensions!
- Run detached in -daemon mode, and make your own Twitter bot!
TTYtter has been deprecated. Development now continues in the fork, oysttyer.
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
add a comment |
This error message is because Twitter needs OAuth for authentication. Take a look at TTYtter if you don't mind a Perl app:
Noooo, not another Twitter client! Yes, another Twitter client. The difference here is that you're dealing with a multi-functional, fully 100% text, Perl command line client.
- In interactive mode, it is a fully interactive client with asynchronous background updates and commands. Use it over telnet, ssh or even a dummy terminal. Supports Streaming API, ANSI colour, UTF-8, hashtags and Twitter Search!
- Works within your favourite environment: use a compatible readline library (like our own bespoke Term::ReadLine::TTYtter), or modify prompt and input methods for many popular window and session managers. Or don't: basic editing and screen management features built-in.
- From the command line, use it to update your Twitter in shell scripts, from cron, and so on.
- Security: Supports Twitter OAuth and HTTP Basic Authentication, and SSL where supported by your user agent.
- Notification support with Growl and libnotify (and extendable to others via the API).
- Geolocation support: hand your GPS coordinates to TTYtter for any application.
- Lists support, including fast creation and modification, and merging lists with your timeline as "custom timelines."
- Supports Twitter-alike APIs such as StatusNet and Identi.ca.
- Supports standard timelines and automatically fetches direct messages, and optionally replies/mentions, and runs queries against the Search API and incorporates them into your timeline as well.
- New and old re-tweet support.
- Write and use your own custom extensions!
- Run detached in -daemon mode, and make your own Twitter bot!
TTYtter has been deprecated. Development now continues in the fork, oysttyer.
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
add a comment |
This error message is because Twitter needs OAuth for authentication. Take a look at TTYtter if you don't mind a Perl app:
Noooo, not another Twitter client! Yes, another Twitter client. The difference here is that you're dealing with a multi-functional, fully 100% text, Perl command line client.
- In interactive mode, it is a fully interactive client with asynchronous background updates and commands. Use it over telnet, ssh or even a dummy terminal. Supports Streaming API, ANSI colour, UTF-8, hashtags and Twitter Search!
- Works within your favourite environment: use a compatible readline library (like our own bespoke Term::ReadLine::TTYtter), or modify prompt and input methods for many popular window and session managers. Or don't: basic editing and screen management features built-in.
- From the command line, use it to update your Twitter in shell scripts, from cron, and so on.
- Security: Supports Twitter OAuth and HTTP Basic Authentication, and SSL where supported by your user agent.
- Notification support with Growl and libnotify (and extendable to others via the API).
- Geolocation support: hand your GPS coordinates to TTYtter for any application.
- Lists support, including fast creation and modification, and merging lists with your timeline as "custom timelines."
- Supports Twitter-alike APIs such as StatusNet and Identi.ca.
- Supports standard timelines and automatically fetches direct messages, and optionally replies/mentions, and runs queries against the Search API and incorporates them into your timeline as well.
- New and old re-tweet support.
- Write and use your own custom extensions!
- Run detached in -daemon mode, and make your own Twitter bot!
TTYtter has been deprecated. Development now continues in the fork, oysttyer.
This error message is because Twitter needs OAuth for authentication. Take a look at TTYtter if you don't mind a Perl app:
Noooo, not another Twitter client! Yes, another Twitter client. The difference here is that you're dealing with a multi-functional, fully 100% text, Perl command line client.
- In interactive mode, it is a fully interactive client with asynchronous background updates and commands. Use it over telnet, ssh or even a dummy terminal. Supports Streaming API, ANSI colour, UTF-8, hashtags and Twitter Search!
- Works within your favourite environment: use a compatible readline library (like our own bespoke Term::ReadLine::TTYtter), or modify prompt and input methods for many popular window and session managers. Or don't: basic editing and screen management features built-in.
- From the command line, use it to update your Twitter in shell scripts, from cron, and so on.
- Security: Supports Twitter OAuth and HTTP Basic Authentication, and SSL where supported by your user agent.
- Notification support with Growl and libnotify (and extendable to others via the API).
- Geolocation support: hand your GPS coordinates to TTYtter for any application.
- Lists support, including fast creation and modification, and merging lists with your timeline as "custom timelines."
- Supports Twitter-alike APIs such as StatusNet and Identi.ca.
- Supports standard timelines and automatically fetches direct messages, and optionally replies/mentions, and runs queries against the Search API and incorporates them into your timeline as well.
- New and old re-tweet support.
- Write and use your own custom extensions!
- Run detached in -daemon mode, and make your own Twitter bot!
TTYtter has been deprecated. Development now continues in the fork, oysttyer.
edited Dec 12 '16 at 21:46
jasonwryan
50.1k14134189
50.1k14134189
answered Jul 1 '12 at 16:55
RenanRenan
14.5k65578
14.5k65578
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
add a comment |
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
2
2
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
+1 for TTYtter. I'm not a huge fan of Twitter, but it's definitely is one of the better clients. The Irssi plugin isn't that great, compared to TTYtter.
– polemon
Jul 1 '12 at 17:04
add a comment |
Try T. Very powerful, easy to use and written in Ruby.
For example, you can tweet directly from the terminal, by executing:
t update "I'm tweeting from the command line."
add a comment |
Try T. Very powerful, easy to use and written in Ruby.
For example, you can tweet directly from the terminal, by executing:
t update "I'm tweeting from the command line."
add a comment |
Try T. Very powerful, easy to use and written in Ruby.
For example, you can tweet directly from the terminal, by executing:
t update "I'm tweeting from the command line."
Try T. Very powerful, easy to use and written in Ruby.
For example, you can tweet directly from the terminal, by executing:
t update "I'm tweeting from the command line."
edited Jul 18 '14 at 7:52
answered Jul 1 '12 at 17:51
Alex ChamberlainAlex Chamberlain
1,43221323
1,43221323
add a comment |
add a comment |
2016 Update
There is a project called Twurl - an OAuth-enabled curl for the Twitter API:
Twurl is like curl, but tailored specifically for the Twitter API. It
knows how to grant an access token to a client application for a
specified user and then sign all requests with that access token.
It also provides other development and debugging conveniences such as
defining aliases for common requests, as well as support for multiple
access tokens to easily switch between different client applications
and Twitter accounts.
Instead of this from the question:
curl -d status="Your Message Here" https://twitter.com/statuses/update.xml
you use something like this:
twurl -d status="Your Message Here" /1.1/statuses/update.json
after you authorize yourself first as explained in the readme.
(note that you don't have to use the protocol and hostname in the URL as you would with curl)
This program was originally written by Marcel Molina who worked at Twitter at that time and it is now an official Twitter project on GitHub.
Many people are asking specifically how to use curl to use the Twitter API and twurl is probably the closest to curl as you can get today.
add a comment |
2016 Update
There is a project called Twurl - an OAuth-enabled curl for the Twitter API:
Twurl is like curl, but tailored specifically for the Twitter API. It
knows how to grant an access token to a client application for a
specified user and then sign all requests with that access token.
It also provides other development and debugging conveniences such as
defining aliases for common requests, as well as support for multiple
access tokens to easily switch between different client applications
and Twitter accounts.
Instead of this from the question:
curl -d status="Your Message Here" https://twitter.com/statuses/update.xml
you use something like this:
twurl -d status="Your Message Here" /1.1/statuses/update.json
after you authorize yourself first as explained in the readme.
(note that you don't have to use the protocol and hostname in the URL as you would with curl)
This program was originally written by Marcel Molina who worked at Twitter at that time and it is now an official Twitter project on GitHub.
Many people are asking specifically how to use curl to use the Twitter API and twurl is probably the closest to curl as you can get today.
add a comment |
2016 Update
There is a project called Twurl - an OAuth-enabled curl for the Twitter API:
Twurl is like curl, but tailored specifically for the Twitter API. It
knows how to grant an access token to a client application for a
specified user and then sign all requests with that access token.
It also provides other development and debugging conveniences such as
defining aliases for common requests, as well as support for multiple
access tokens to easily switch between different client applications
and Twitter accounts.
Instead of this from the question:
curl -d status="Your Message Here" https://twitter.com/statuses/update.xml
you use something like this:
twurl -d status="Your Message Here" /1.1/statuses/update.json
after you authorize yourself first as explained in the readme.
(note that you don't have to use the protocol and hostname in the URL as you would with curl)
This program was originally written by Marcel Molina who worked at Twitter at that time and it is now an official Twitter project on GitHub.
Many people are asking specifically how to use curl to use the Twitter API and twurl is probably the closest to curl as you can get today.
2016 Update
There is a project called Twurl - an OAuth-enabled curl for the Twitter API:
Twurl is like curl, but tailored specifically for the Twitter API. It
knows how to grant an access token to a client application for a
specified user and then sign all requests with that access token.
It also provides other development and debugging conveniences such as
defining aliases for common requests, as well as support for multiple
access tokens to easily switch between different client applications
and Twitter accounts.
Instead of this from the question:
curl -d status="Your Message Here" https://twitter.com/statuses/update.xml
you use something like this:
twurl -d status="Your Message Here" /1.1/statuses/update.json
after you authorize yourself first as explained in the readme.
(note that you don't have to use the protocol and hostname in the URL as you would with curl)
This program was originally written by Marcel Molina who worked at Twitter at that time and it is now an official Twitter project on GitHub.
Many people are asking specifically how to use curl to use the Twitter API and twurl is probably the closest to curl as you can get today.
answered Jun 8 '16 at 15:49
rsprsp
2,5181147
2,5181147
add a comment |
add a comment |
Try twidge
.
sudo apt install twidge
twidge setup
twidge update "Trying tweeting from linux command line - twidge."
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
add a comment |
Try twidge
.
sudo apt install twidge
twidge setup
twidge update "Trying tweeting from linux command line - twidge."
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
add a comment |
Try twidge
.
sudo apt install twidge
twidge setup
twidge update "Trying tweeting from linux command line - twidge."
Try twidge
.
sudo apt install twidge
twidge setup
twidge update "Trying tweeting from linux command line - twidge."
answered Dec 12 '16 at 21:41
Ondra ŽižkaOndra Žižka
464312
464312
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
add a comment |
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
1
1
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
FYI the version of twidge in older repos (Debian Wheezy) is using the now-obsolete v1 Twitter API. The new version of twidge works well though.
– cherdt
Jan 1 '17 at 16:32
add a comment |
Take a look at Rainbow Stream - smart/beautiful and written in Python.
It provides a rainbow shell which can start by
$ rainbowstream
and inside the app, updating a status is quite easy with
[@yourTwitterName]: t tweeting from #rainbowstream
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
add a comment |
Take a look at Rainbow Stream - smart/beautiful and written in Python.
It provides a rainbow shell which can start by
$ rainbowstream
and inside the app, updating a status is quite easy with
[@yourTwitterName]: t tweeting from #rainbowstream
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
add a comment |
Take a look at Rainbow Stream - smart/beautiful and written in Python.
It provides a rainbow shell which can start by
$ rainbowstream
and inside the app, updating a status is quite easy with
[@yourTwitterName]: t tweeting from #rainbowstream
Take a look at Rainbow Stream - smart/beautiful and written in Python.
It provides a rainbow shell which can start by
$ rainbowstream
and inside the app, updating a status is quite easy with
[@yourTwitterName]: t tweeting from #rainbowstream
edited Jul 18 '14 at 13:47
answered Jul 18 '14 at 3:49
DTVDDTVD
212
212
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
add a comment |
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
Interesting Software. But could you given an example of how to tweet directly from the console? Since the question is about tweeting directly from the console.
– Raphael Ahrens
Jul 18 '14 at 4:24
add a comment |
I have created a Twitter client that can tweet from the command line, as mentioned at Software Recommendations.
To tweet a message
java -jar EmailTweetor.jar tweet hello.txt
or
echo "Hello" | java -jar EmailTweetor.jar tweet
To tweet with an image:
java -jar EmailTweetor.jar tweet hello.txt image.jpg
The computer where the command is launched will need to have OpenJDK or Oracle Java v1.8 or later. The JAR also needs a one-time authorization with Twitter.
add a comment |
I have created a Twitter client that can tweet from the command line, as mentioned at Software Recommendations.
To tweet a message
java -jar EmailTweetor.jar tweet hello.txt
or
echo "Hello" | java -jar EmailTweetor.jar tweet
To tweet with an image:
java -jar EmailTweetor.jar tweet hello.txt image.jpg
The computer where the command is launched will need to have OpenJDK or Oracle Java v1.8 or later. The JAR also needs a one-time authorization with Twitter.
add a comment |
I have created a Twitter client that can tweet from the command line, as mentioned at Software Recommendations.
To tweet a message
java -jar EmailTweetor.jar tweet hello.txt
or
echo "Hello" | java -jar EmailTweetor.jar tweet
To tweet with an image:
java -jar EmailTweetor.jar tweet hello.txt image.jpg
The computer where the command is launched will need to have OpenJDK or Oracle Java v1.8 or later. The JAR also needs a one-time authorization with Twitter.
I have created a Twitter client that can tweet from the command line, as mentioned at Software Recommendations.
To tweet a message
java -jar EmailTweetor.jar tweet hello.txt
or
echo "Hello" | java -jar EmailTweetor.jar tweet
To tweet with an image:
java -jar EmailTweetor.jar tweet hello.txt image.jpg
The computer where the command is launched will need to have OpenJDK or Oracle Java v1.8 or later. The JAR also needs a one-time authorization with Twitter.
edited Feb 1 at 8:52
terdon♦
131k32257436
131k32257436
answered Feb 1 at 5:35
The SomberiThe Somberi
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f42052%2fhow-to-tweet-using-terminal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown