Ariel University OS course assignment. These programs will only use system calls.
This program will get the path for two text files as parameters for the main function and will check if the files are the same.
./comp.out /home/user/workspace/files/f1.txt /home/user/workspace/files/f2.txt Will return 2 if the files are the same and 1 if they are not.
This program will get the path for a file that contains three lines:
- The folder in which the students programs are stored (each sub-folder is a different student)
- Input file path
- The correct output for the input we provide
./a.out home/user/Desktop/OSExe/file.txt
It will then go through the folder, run the students programs and compare the output using ex11.c. Please note that the compilation file for ex11.c needs to be called comp.out otherwise it would not work. The program will create a CSV file in which the grades will be stored. The possible grades can be:
0 with bad output
0 with compilation error
0 with no C file
100 with great job
Martziano,0,BAD_OUTPUT
Ortal,0,COMPILATION_ERROR
Shalom,100,GREAT_JOB
Shimi,100,GREAT_JOB
Farjun,0,NO_C_FILE
The program will delete all of the students compilation files so there wont be any junk left behind.