ms-runner/main.go

15 lines
267 B
Go
Raw Normal View History

2024-06-20 16:41:25 +00:00
package main
import (
runner "runner/runner"
)
func main() {
2024-06-22 16:29:19 +00:00
err := runner.Init()
if(err != nil) {
2024-06-20 16:41:25 +00:00
panic(err)
}
limits := runner.Limits{Core: 3,Memory: 10000000, Time: 1000}
2024-06-22 16:29:19 +00:00
runner.IsolatedRun([]string{"/bin/echo", "123"}, limits)
2024-06-20 16:41:25 +00:00
}