A fun and easy way to run your commands remotely from anywhere in your network!
I built this because in my job I use Linux to run my compiled jar files and I was having a problem running over and over again like clicking the so I made this program to keep it easy to send command and run the program.
The TerminalClient and TerminalServer are two Java programs that allow you to run any command line program remotely from anywhere in your network. You can use the TerminalClient to send commands to the TerminalServer and the TerminalServer will execute those commands and send the output back to the TerminalClient.
- Java: Built with Java 1.8 compatibility for wide platform support
- Socket Programming: Uses Java's socket communication for network connectivity
- Swing GUI: The TerminalClient includes a Swing-based user interface for easy interaction
- Multi-threading: Handles multiple client connections simultaneously
- Cross-platform: Works on both Windows and Linux environments
- Configuration Management: Uses Properties files for easy configuration
The TerminalClient is a Java program that you can run from anywhere in your network. You can use it to send commands to the TerminalServer and the TerminalServer will run your commands and send the output back to the TerminalClient.
- Automatic and manual execution modes
- Connection state management
- Configurable host connections
- Error logging and handling
The TerminalServer is a Java program that you can run on a server. You can use it to run any command line program and send the output back to the TerminalClient.
- Multi-client support
- Command history tracking
- Platform-specific command execution (Windows/Linux)
- Dynamic configuration reloading
- Execute any command line program (not just Java applications)
- Run shell scripts and batch files
- JDK 1.8 or higher
- Network connectivity between client and server machines
- Windows or Linux operating system
Here are the steps to use the TerminalClient and TerminalServer:
- Run the TerminalServer on a server.
- Run the TerminalClient on your computer.
- Type in the command you want to run and press enter.
- The TerminalServer will run your command and send the output back to the TerminalClient.
Let's say you want to run the command "java -jar myprogram.jar" on the server. You can type in the command in the TerminalClient and press enter. The TerminalServer will run the program and send the output back to the TerminalClient.
You can run any command that is available on the server, such as:
ls -lato list files on a Linux serverdirto list files on a Windows serverpython script.pyto run a Python scriptnpm startto start a Node.js application./script.shto run a shell scriptbatch_file.batto run a batch file
Here are some of the features of the TerminalClient and TerminalServer:
- Easy to use
- Can be used from anywhere in your network
- Can run multiple programs at the same time
- Can send commands to the TerminalServer and the TerminalServer will run your program and send the output back to the TerminalClient
- Cross-platform support for both Windows and Linux commands
You can get the TerminalClient and TerminalServer from cloning the repository.
You can build the TerminalClient and TerminalServer by running the following command in the terminal:
./compile.batThis will create the necessary JAR files in the dist directory.
Both the client and server use properties files for configuration:
client_config.properties: Contains client connection settingsserver_config.properties: Contains server port and other settings