Browse Source

Redirecting output via the shell.

master
MagicBot 2 years ago
parent
commit
a71bf4330b
  1. 2
      src/discord/handlers/DevRequestHandler.java

2
src/discord/handlers/DevRequestHandler.java

@ -61,7 +61,7 @@ public class DevRequestHandler {
return; return;
} }
processBuilder = new ProcessBuilder("/bin/sh", "-c", commandString + " " + commandArgument); processBuilder = new ProcessBuilder("/bin/sh", "-c", commandString + " " + commandArgument + " > devLastOut");
logString = String.join(" ",processBuilder.command().toArray(new String[0])); logString = String.join(" ",processBuilder.command().toArray(new String[0]));
try { try {

Loading…
Cancel
Save