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)
|
|
|
|
}
|
2024-06-22 15:59:29 +00:00
|
|
|
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
|
|
|
}
|