<? xml version = '1.0'?>
<xsl: stylesheet version = '1.0' xmlns: xsl = 'http: //www.w3.org/1999/XSL/Transform'>
<xsl: template match = '/'>
<xsl: value-of select = 'status / id' />
</ xsl: template>
</ xsl: stylesheet>
#! / bin / sh # Made by rsk - http://rsk.me # Imports $ TPASS, $ TUSER . ~ / .twit / pass XSLPATH = / etc / twit / twit.xsl echo "Type in your message ..." MSG = "$ (perl -e '$ _ = <>, print')" echo -n "Sending ..." RESULT = $ (curl --basic --user $ TUSER: $ TPASS --data status = "$ MSG" http://twitter.com/statuses/update.xml 2> / dev / null | xsltproc $ XSLPATH - | tail -n 1) if [-n "$ RESULT"]; then echo "ok"; else echo "Sending failed!"; fi
Source: https://habr.com/ru/post/55187/
All Articles