From 2680f6cb579d1fee01c32e46e1d87ae88bae585b Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 2 Oct 2024 09:40:33 +0000 Subject: [PATCH] add RunCommand git-svn-id: file:///raid/svn-personal/koakuma/trunk@35 219d0f9c-2d94-d447-890a-813e76b88fe9 --- koakuma.cgi.in | 5 +++++ 1 file changed, 5 insertions(+) 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 -----" -- 2.45.2