读书人

怎么使用Twitter来远程监控服务器的运

发布时间: 2012-09-07 10:38:15 作者: rapoo

怎样使用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:

    This code is developed in a short time frame, and may not be bug free. The program is actually a backdoor which violates company security policies. I would advise that you use it wisely. Last, do not abuse Twitter

<script type="text/javascript"></script>

读书人网 >编程

热点推荐