Skip to content
/ tweetnext Public

A shell script using curl to update the status of a Twitter account.

Notifications You must be signed in to change notification settings

ln5/tweetnext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

A shell script using curl to update the status of a Twitter account.


There are three mandatory arguments and two optional:

  tweetnext.sh USER PASSWORD DIRECTORY [PERIOD_MINIMUM [PERIOD_RANDOM]]

PERIOD_MINIMUM is the minimum number of minutes to wait until tweeting
the next time.

PERIOD_RANDOM is the maximum random number of minutes to add to
PERIOD_MINIMUM to get the number of minutes to wait before tweeting
the next time.


Dependencies: sh, curl, od, expr, at, /dev/random


Example of usage:

  PATH=$PATH:/path/to/tweetnext.sh; eport PATH
  echo 'My first tweet.' > first.tweet
  echo 'My second tweet.' > 2nd.tweet
  tweetnext.sh my-twitter-user my-password `pwd` 2 2


Known bugs:
- You get noise from ls when you're out of tweets.
- If the update fails, the tweet is lost.

About

A shell script using curl to update the status of a Twitter account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages