What all changes do i have to make if I wish to add an additional flag while executing runguard. i want to add a new flag for network access: net_flag
./run testdata.in program.out sudo -n /opt/domjudge/judgehost/bin/runguard -r /opt/data/30000309/codeTest_2202/30000309271547/622/c1-s2-j301-27-50/testcase187783/.. --nproc=640 --no-core --streamsize=40000 --user=domjudge-run --walltime=1:1.1 --cputime=1:1.1 --filesize=40000 --stderr=program.err --outmeta=program.meta -- /testcase187783/execdir/program
what all changes are required for adding a new flag.
On Fri, Jul 20, 2018 at 2:58 PM, Sarthak Garg <sarthak.garg@aspiringminds.in
wrote:
What all changes do i have to make if I wish to add an additional flag while executing runguard. i want to add a new flag for network access: net_flag
./run testdata.in program.out sudo -n /opt/domjudge/judgehost/bin/runguard -r /opt/data/30000309/codeTest_2202/30000309271547/622/c1-s2-j301-27-50/testcase187783/.. --nproc=640 --no-core --streamsize=40000 --user=domjudge-run --walltime=1:1.1 --cputime=1:1.1 --filesize=40000 --stderr=program.err --outmeta=program.meta -- /testcase187783/execdir/program
On 20/07/18 11:28, Sarthak Garg wrote:
What all changes do i have to make if I wish to add an additional flag while executing runguard. i want to add a new flag for network access: net_flag
Check runguard.c for another option, e.g. --no-core. Note that you also need to update the string of short options passed to getopt_long(). Then add the option in the call to runguard in testcase_run.sh.
Jaap
./run testdata.in http://testdata.in program.out sudo -n /opt/domjudge/judgehost/bin/runguard -r /opt/data/30000309/codeTest_2202/30000309271547/622/c1-s2-j301-27-50/testcase187783/.. --nproc=640 --no-core --streamsize=40000 --user=domjudge-run --walltime=1:1.1 --cputime=1:1.1 --filesize=40000 --stderr=program.err --outmeta=program.meta -- /testcase187783/execdir/program
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel