home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
robot-pd
/
12400.ZIP
/
12400B.DSK
/
manual10.txt
< prev
next >
Wrap
Text File
|
1998-04-30
|
2KB
|
59 lines
╩C H A P T E R N I N EΩ
╩9. Logging In ProcedureΩ
Throughout this section I will refer to the Shell and
Kernel programs being separate. This is now the case, only
the kernel has to remain memory resident, the Shell can be
deleted, or even replaced.
Although this opens up the possibility of different
shells, it should be noted that Centrox always loads the
file called SH1.SHL from /COM. The technical section
discusses the implementation requirements for a new shell.
When the LOGON program is first run, you will be prompted
to indicate how many disk drives you have. Type the
relevant number. Note that with a single drive system, the
Kernel will guide you through any disk changes.
After LOGON has asked for the current time and date, it
will load first the KERNEL and then SHELL. LOGON then
moves the user into his home directory. Finally LOGON
passes control to the Shell.
The Shell will then search for a LOGIN file. This is a
file stored in the home directory, under the name
"LOGIN.USR". If such a file is found, then the contents of
it will be treated as a series of commands and executed in
order.
The login file should contain custom-made commands. This
saves the user from setting up the Shell every time he
logs on. Transient programs can be run from the login file
but they exit direct to the Shell rather than to the next
command in the login file. If you need the login process
to continue after a transient program, you must use the
HOOK facility.
Transient programs will disable the normal mail checking
facility even if HOOK is used. The only solution to this
is to invoke a program to check for a mail file as part of
the login process. The following section of code will test
for mail:-
╔p.name$=u.name$+".MYL":p.user%=0:p.drive%=1Θ
╔vectr%=6:GOSUB 60000:if ern%=0then?"You have mailΘ
Once the LOGIN file has been looked for (and possibly run)
the Shell will look to see if any mail has been sent to
the user (but note above comments).
If a mail file is found the message:-
"You have mail"
Will be displayed. The contents of your mail file can be
viewed by typing MAIL at the prompt.╒
n I will refer to the She