Einstein labs
Einstein labs will involve writing Shell scripts for marks.
Homework
Before the first lab:
-
Do the
Lab on shell
in full.
(How to write a shell script.)
Setup
You will have "Exam mode" labs.
- Guest login. No student-owned files.
- No student.computing.dcu.ie.
- You may not get out phones or other devices. Phones cannot be on desks. They must stay in coats or bags.
- You may not bring any paper notes.
- Limited to:
- Linux command-line.
- Manual pages.
- My notes. humphryscomputing.com
- Einstein upload page.
- No other Internet.
- You must do these physically in the labs.
This is enforced by the software.
- Each test will be revealed on the day, on the course home page.
- Tutors supervise.
- Silent labs. No talking.
- Upload to Einstein for marks.
- Time limited to the lab session.
Setup - Download Shakespeare
Instructions
- Debug them locally on Linux first.
- Do not debug them on Einstein.
- Naming:
- You must use the exact filenames I will give you.
- Scripts for Einstein must end in ".sh"
-
Shell scripts in general do not need any extension. I never use an extension myself.
The .sh here is an Einstein requirement.
- Editing:
- You can edit with gedit (run in parallel to command line):
gedit file.sh &
- Or you can edit with nano (have to exit to go back to command line, or else make two command lines):
nano file.sh
- Running:
- Since $HOME/bin is not set up on the lab exam logins, run your program (say it is called "file.sh") by typing:
./file.sh
- Note that in a normal environment we can get rid of "./" and ".sh".
- Uploading:
- When the script is debugged locally, upload it to Einstein for marks:
- Click on the upload section to select your file.
Or drag and drop your file.
- Note the "einstein" upload script:
einstein file.sh
will not work for the lab exams.
- Check how you did:
-
- You can have any number of attempts (within the lab time) to pass the tests.