# phoenix_telnetclient
**Repository Path**: phoenixframework/phoenix_telnetclient
## Basic Information
- **Project Name**: phoenix_telnetclient
- **Description**: phoenixframework平台的一个模块,用于对socketserver进行操作
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 3
- **Forks**: 1
- **Created**: 2016-01-18
- **Last Updated**: 2021-06-21
## Categories & Tags
**Categories**: web-dev-toolkits
**Tags**: None
## README
# phoenix_telnetclient
phoenixframework平台的一个模块,用于对socketserver进行操作
支持以下命令:
1.!setname - setdisplayname,format: !setname=your name
2.!showusers - show all users
3.!showorders - show all instruct
4.!start - start program ex:!start iexplore.exe
5.!shell - start shell command ex:!shell sh test.sh 111
6.!export - export a file ,if filepath have block,use '^' instead,ex:!export e:\\test\\test.txt isappend(true/false) datas
7.!file - return a file content,ex:!file test.txt UTF-8
8.!runsh - return Linux or Windows command result,ex:!runsh svn info
9.!addfilewatch - add a file watching dog,max:100,ex:!addfilewatch a.log
10.!getwatchstring - return file watch string,ex:!getwatchstring a.log
11.!stopfilewatch - stop a file watching dog,ex:!stopfilewatch a.log
12.!scanfile - scanfile a file by keyword,ex:!scanfile a.log test 1,1:contains keyword,0:not contains
13.exit - exit client,ex:exit
该工具用于部署到远程机器上,既是客户端也可以作为服务端,可以通过telnet命令或socket客户端给它发送命令,它可以完成一系列远程操作。
支持两种启动模式:
1.java -jar TCPServer.jar 7788 ,这种模式接收一个命令一个操作方式
2.java -jar TCPServer.jar 7788 monitor ,这种模式用于对一个对象持续监控,并每秒通知一次客户端,客户端连接之后,除非客户端发送停止命令,否则保持一直连接。
还可以作为简单的聊天工具~~