]> Git repositories of Nishi - koakuma.git/commitdiff
add RunCommand
authorNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 09:40:33 +0000 (09:40 +0000)
committerNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 09:40:33 +0000 (09:40 +0000)
git-svn-id: file:///raid/svn-personal/koakuma/trunk@35 219d0f9c-2d94-d447-890a-813e76b88fe9

koakuma.cgi.in

index 3f0f627270021267eab73250dfc1598d559cda1f..4608e1253c8a6afd9d00076d3be8425ad7a0aa9c 100644 (file)
@@ -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 -----"