piston/lxc/executors/prolog
2021-02-19 00:33:39 -06:00

8 lines
189 B
Bash
Executable file

#!/bin/bash
cd /tmp/$1
sed 's/^.*$/:- forall((Goal = (\0), call(Goal)), (write(Goal), nl))./' stdin.stdin |
cat code.code - > code.pl
timeout -s KILL 3 swipl -g true -t halt code.pl