CloudOJ's Status Watcher, take the place of SNGOJWatcher
CloudOJ's Status Watcher is under GNU License Version 3.
See CloudOJ HERE
print("iSkyZH%sgmail.com" % ("@"));
print("iSkyZH%s163.com" % ("@"));
- git clone ...
- Create config.py (or
<Watcher>/config/__init__.py
) - Install Compilers (gcc g++ fpc)
- Edit apikey in CloudOJ's config.ini
- Run `python3 main.py' (or Supervisor)
On Linux:
git clone [email protected]:lodevil/Lo-runner.git
cd Lo-runner
python3 setup.py install
Then python will automatically build Lo-runner and then install it.
You may also need gcc, g++ and fpc for complete compiler support.
Watcher now doesn't supprt Windows platform.
ojconfig = {
"host" : "localhost",
"requestpath" : "/oj/watcherapi",
"apikey" : "abcdefgasdklfjasenrhaushjfkjasblvkjdasvd"
}
dataPath = {
'probPath': './data/prob/',
'execPath': './data/exec/',
'codePath': './data/code/',
'tempPath': './data/temp/'
}
langCompile = {
0: "g++ -x c++ -O2 -Wall -lm -DONLINE_JUDGE --static --std=c++98 -fno-asm %(src)s -o %(target)s",
1: "gcc -x c -O2 -Wall -DONLINE_JUDGE --static --std=c99 -fno-asm %(src)s -lm -o %(target)s",
2: "g++ -x c++ -O2 -Wall -lm -DONLINE_JUDGE --static --std=c++11 -fno-asm %(src)s -o %(target)s",
3: "",
4: "",
5: "",
6: "fpc -O2 -dONLINE_JUDGE %(src)s -o%(target)s",
7: "",
8: "",
9: "",
10: "",
11: ""
}
langRun = {
0: "%(target)s",
1: "%(target)s",
2: "%(target)s",
3: "",
4: "",
5: "",
6: "%(target)s",
7: "",
8: "",
9: "",
10: "",
11: ""
}