-
⚙️How To⚙️
- Clone the script to a folder of your choice
- Run the gcc.sh file with the following params:
1. folder name to be compiled
2. a word. only files that contains the given word will be complied ::must!
3. optional: -r flag, if you want to compile the inner files as well.
⚡
> ./gccfind.sh myFolder main -r
⚡
> ./tennis.sh -p
⚙️How To⚙️
- compile myshell.c
gcc -o shell myshell.c
- There are two options:
you can run the runnable script without any other params.
The program will act as you expect from a normal shell
Or you can send path to a folder, which contains custom scrits. The folder be then added temporarily to your env variables,
so you can can any script that is defined there by simply typing it's name.
you can run the shell with the path to 'myCommads', then you can just typedo-something.sh
,
no matter what pwd you are in.
⚡> ./myshell ~/myCommands
- Clone the script to a folder of your choice
-
The config file contains 3 rows:
✏️ 1: Path to parent folder which contains sub-folders for grade. Each folder is a user folder.
✏️ 2: Path to an input file for will-be executed program
✏️ 3: Path to correct output file
The program iterates through the users' folders, compiles(if exists) the c file in that folder. Then runs the compiled program with the input file and comperes the results to the correct output from the config file. If anything in the way is getting wrong, the grade will be affected as listing here:
> > > > > ✨ NO_C_FILE : 0
> > > > > ✨ COMPILATION_ERROR: 10
> > > > > ✨ TIMEOUT: 20
> > > > > ✨ WRONG: 50
> > > > > ✨ SIMILAR: 75
The grade will be written into an excel file, named results.csv, which will be created inside the running folder.
⚡> ./a.out /home/os20 12 /conf.txt