two off-site users connect to the same Linux device, often need to communicate, especially in the process of troubleshooting, the work encountered many times, each time is used QQ telephone, etc., always feel not too convenient, so the shell has written a simple tool.
1, execution, you can specify two parameters, the first is the directory of temporary files, the second is the user name, you can specify only the directory, if not specified, will use the default directory, and use WhoAmI to obtain the user name, the two sides must specify the same directory .
2. In the same directory, only two users are supported.
3, Q key or CTRL + C exit, one side terminates the dialogue, the other side automatically closed.
4, in the course of the dialogue, the "command:" begins, then the local execution of subsequent instructions, for example: Command:ifconfig, will be executed at the current ifconfig instruction, "ly:" The result of subsequent instructions will be sent to the other side.
One party executes the script and waits for the other party to enter
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/7D/EB/wKioL1bzSIKgOZIxAAAPPvuMbO8243.png "border=" 0 " Style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica, ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255); "/>
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7D/EE/wKiom1bzR-rgZj0HAAAOxmcE8fs548.png "border=" 0 " Style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica, ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255); "/>
We can talk.
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/7D/EE/wKiom1bzR-qzQJvFAADKQlZobJA732.png "border=" 0 " Width= "720" style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica , ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255);/>
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/7D/EB/wKioL1bzSIKCIODWAACM0voZAXY264.png "border=" 0 " Width= "720" style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica , ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255);/>
Of course support Chinese
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7D/EE/wKiom1bzR-qiFQpkAAAeRI7jIZc571.png "border=" 0 " Style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica, ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255); "/>
650) this.width=650; "src=" http://bbs.51cto.com/images/default/attachimg.gif "border=" 0 "style=" margin:0px; Padding:0px;border:medium none;line-height:1.6em; "alt=" Attachimg.gif "/> 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/7D/EB/wKioL1bzSIKBTpFyAAAeKZaJAIE525.png "border=" 0 " Style= "Margin:0px;padding:0px;border:medium none;line-height:22.4px;font-family: ' Song Body ', Arial, Helvetica, ' San-serif '; Font-size:14px;white-space:normal;background-color:rgb (255,255,255); "/>
This article is from "retrograde person" blog, declined reprint!
Application of script two: Chat tool