1 / 4

Scripting to Grade Homework

Scripting to Grade Homework. user. 2525101010s0aq.sh cat 2525101010s0arq.txt >> ../$1/Soda/FEEDME. append. File Hierarchy. 2525101010s0arq.txt 25 25 10 10 10 s0 a q. F14_Hmwk user Soda FEEDME SodaMachine.jar scripts 2525101010s0aq.txt 2525101010s0aq.sh 252525s0arq.txt

eagan-best
Télécharger la présentation

Scripting to Grade Homework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scripting to Grade Homework

  2. user 2525101010s0aq.sh cat 2525101010s0arq.txt >> ../$1/Soda/FEEDME append File Hierarchy 2525101010s0arq.txt 25 25 10 10 10 s0 a q • F14_Hmwk • user • Soda • FEEDME • SodaMachine.jar • scripts • 2525101010s0aq.txt • 2525101010s0aq.sh • 252525s0arq.txt • 252525s0arq.sh • arq.txt • arq.sh • aR0q.txt • aR0q.sh • run_script.sh # run_script.sh if [ -e FEEDME ] then rm FEEDME fi touch FEEDME tail -f FEEDME | java -jar $1

  3. Execute Program user/Soda $ ../../scripts/run_script.sh Sodamachine.jar executes: tail -f FEEDME | java -jar SodaMachine.jar • at this point the program is running but getting its input from the • file FEEDME. • FEEDME is given more lines every time we execute one of the scripts • 2525101010s0aq.sh • 252525s0arq.sh • arq.sh • aR0q.sh

  4. Execute Scripts F14_Hmwk/scripts $ ./2525101010s0aq.sh user These scripts are run individually and this allows me to look at the output after each sale or admin transaction before I test another sale.

More Related