piston/lxc/executors/c

8 lines
162 B
Plaintext
Raw Normal View History

2021-01-17 01:54:57 +01:00
#!/usr/bin/bash
runuser runner$1 -c "
cd /tmp/$2
gcc -std=c11 -o binary -x c code.code
timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin
"