Students who have OCE accounts will use them to do their assignments for a variety of classes. The instructor for each class may wish to broadcast messages or tailor the student's shell environment in a special way for the class. The "prep" alias in conjunction with instructor controlled prepfiles answers this need.
The way this works is that students in an OCE-model class, login and enter a "prep" command for the class before starting to work. For example,
The prep mechanism looks for a prepfile for the class. It expects to find the prepfile in a directory called "public" beneath the class umbrella directory. For example:
The commands in the prepfile are "sourced" by the student's shell. The commands in the prototype prepfile which is automatically provided to OCE courses does the following:
Messages may be presented to students as part of the prepfile. This can be accomplished simply by creating a file called broadcast in the public directory under the umbrella directory for the class. This file only needs to contain the exact text that the students should see when they "prep".
In the following example we will assume that the umbrella directory for the class is /home/solaris/ieng9/cs132f. Create the file /home/solaris/ieng9/cs132f/public/broadcast. Put the text of the message in the broadcast file. Make sure the broadcast file is "world" readable:
chmod a+r broadcast
If you still have questions or need additional assistance, please submit a ticket or call the ITS Service Desk at (858) 246-4357