Show More
Commit Description:
update install script
Commit Description:
update install script
File last commit:
Show/Diff file:
Action:
grader-process-check.SAMPLE | 12 lines | 414 B | text/plain | TextLexer |
merge with java-branch and also move grader-process-check to SAMPLE
r251 #!/bin/bash
install_dir=/home/john/cafe_grader
ruby_executable=/home/john/.rvm/wrappers/ruby-2.3.0/ruby
update sample of grader-process-check
r255
#check number of running grader
count=`ps aux | grep $install_dir | grep "grader grading queue" | wc -l`
#if there is no grader running, start a new one
merge with java-branch and also move grader-process-check to SAMPLE
r251 if [ $count -lt 1 ]; then
update sample of grader-process-check
r255 cd $install_dir/judge
merge with java-branch and also move grader-process-check to SAMPLE
r251 $ruby_executable $install_dir/judge/scripts/grader grading queue > $install_dir/judge/grading.log &
fi