From: Nishi Date: Wed, 2 Oct 2024 09:40:33 +0000 (+0000) Subject: add RunCommand X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=2680f6cb579d1fee01c32e46e1d87ae88bae585b;p=koakuma.git add RunCommand git-svn-id: file:///raid/svn-personal/koakuma/trunk@35 219d0f9c-2d94-d447-890a-813e76b88fe9 --- diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 3f0f627..4608e12 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -17,6 +17,11 @@ proc loop_components {run} { } } +proc RunCommand {command} { + puts "* $command" + eval exec $command >@stdout 2>@1 +} + proc crash {reason} { global components KOAKUMA_VERSION puts stderr "----- Start Koakuma Crash dump log -----"