怎样使用Twitter来远程监控服务器的运行情况(转)
?
Download Source Code + Binary
?
This is a piece of code that I just developed out of fun, but it helped to resolve one of my recent problem.
I was running a batch job in one of the
?
<!--adsense-->
By sending the command starting with “RUN@”, it will be executed by a Java process running on the server. The output will be sent back to Twitter and get refreshed at WinTwit.
To start with, you need to configure the
<!--adsense-->
The Java program size is very small. It takes very little memory and has no other dependencies. All you need is JDK 1.5.
The jar file twittersh.jar and config.properties are all you need. To run it,
java -cp <path to config.properties folder>:<path>/twittersh.jar com.twt.twitter.TwitterPoller
Note:
<script type="text/javascript"></script>