code:shell:post-a-twitter
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
code:shell:post-a-twitter [2012/12/26 23:17] – created percy | code:shell:post-a-twitter [2012/12/26 23:28] – percy | ||
---|---|---|---|
Line 6: | Line 6: | ||
</ | </ | ||
+ | |||
+ | ./ | ||
+ | ./ | ||
+ | | ||
+ | Auto cut the length limit to 140: | ||
+ | <file BASH twitter.sh> | ||
+ | #!/bin/sh | ||
+ | |||
+ | msg=`echo ${@}|cut -b 1-140` | ||
+ | |||
+ | curl -d " | ||
+ | |||
+ | </ | ||
+ | |
/var/www/dokuwiki/wiki/data/pages/code/shell/post-a-twitter.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1