From a71bf4330b68c9e4227f70046cdcc04307d3440c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 Jan 2023 10:12:45 -0500 Subject: [PATCH] Redirecting output via the shell. --- src/discord/handlers/DevRequestHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/handlers/DevRequestHandler.java b/src/discord/handlers/DevRequestHandler.java index d50cb78e..e747d73e 100644 --- a/src/discord/handlers/DevRequestHandler.java +++ b/src/discord/handlers/DevRequestHandler.java @@ -61,7 +61,7 @@ public class DevRequestHandler { 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])); try {