Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mavr.sao.ru/hq/sts/linux/book/c_marshall/section2_19_4.html
Дата изменения: Unknown
Дата индексирования: Fri Dec 28 19:30:15 2007
Кодировка:

Поисковые слова: п п п п п п п р п р п р п р п
The command line interface (TEXT CEILIDH ONLY)



Next: Advantages of the command line interface Up: Ceilidh - On Line C Tutoring System Previous: Question/answer exercises

The command line interface (TEXT CEILIDH ONLY)

This is a completely new interface in which, instead of using menus, each Ceilidh facility is represented by a UNIX command. It can be used on any terminal. Because there are no menus in this system, it is recommended that you use it only after some experience of the menu system.

To use this facility, there are two things you must do. First execute


     ~ceilidh/bin.cli/set.env

to set up an appropriate environment. You will need to check with your teacher just where the ~ceilidh directory is on the machine. This needs to be done once only (unless at a later stage you wish to reset your environment).

In order to use these commands, the directory containing them must be included in your PATH variable. To do this, type


     source ~ceilidh/bin.cli/source.csh

at the start of each logged-on session during which you wish to use Ceilidh.

From here on, type


     commands

to get a list of Ceilidh commands currently available, or


     status

to show the currently set course, unit and exercise. The commands follow generally the pattern of the menu commands, but a few have had to be renamed to avoid clashes with existing commands. A typical starting sequence might be


                Command       Purpose

                commands      See commands available
                set.cse pr1   Select course "pr1"
                commands      See extra course commands
                lu            List unit titles
                set.unit 4    Set a particular unit
                lx            List exercise titles
                set.ex 4      Select exercise to solve
                vq            View question
                setup         Set up program skeleton
                ep            Edit program
                cm            Compile program
                run           Run program
                sub           Submit
                cks           Check submitted



Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994