Skip to content

Commit

Permalink
Update Server.java
Browse files Browse the repository at this point in the history
Trying to fix tremux bug
  • Loading branch information
Fedi6431 authored Jun 15, 2024
1 parent 54cb89b commit 35fdb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public Server(int port) {
// string to read input
String line = "";
while (!line.equalsIgnoreCase("exit")) {
try {
// read the message sent by the client via socket
line = input.readUTF();
System.out.println(line);
// try to execute the command on cmd using Runtime.getRuntime
try {
Process cmd_process = Runtime.getRuntime().exec(new String[]{"cmd", "/c " + line});
Process linux_process = Runtime.getRuntime().exec(new String[]{line});
} catch (IOException IOe) {
Expand Down

0 comments on commit 35fdb20

Please sign in to comment.