mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
experimental new executors
This commit is contained in:
parent
7880f204b6
commit
178d9c89f7
2 changed files with 12 additions and 2 deletions
|
@ -1,2 +1,7 @@
|
|||
cd /tmp/$2
|
||||
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 emacs -Q --script code.code"
|
||||
|
||||
if [[ -z $(grep '[^[:space:]]' args.args) ]]; then
|
||||
runuser -l runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 emacs -Q --script code.code"
|
||||
else
|
||||
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 emacs -Q --script code.code"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue