-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
29 lines (17 loc) · 790 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.