home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
ddjmag
/
ddj8706.arc
/
BBS.L8
< prev
next >
Wrap
Text File
|
1987-05-05
|
2KB
|
86 lines
Listing Eight
.profile For the info Account
# set the default path to an empty rbin directory
1 PATH=/u/bbs/info/rbin
# set the level one prompt to the logoff message
2 PS1='Type CNTRL-D now...'
# display the welcome message
3 echo
4 echo " Welcome to Scholastech Telecommunications"
5 echo " Scholastech Info"
6 echo
7 cat msg
8 echo
9 echo "Press the carriage return to begin: \c"
10 read dummy
# display the contents of the information file
11 more info.file
12 echo
13 echo "Press the carriage return when done: \c"
14 read dummy
15 echo
# give the user the choice of whether or not to sign up for workshops
16 echo "Do you wish to sign up for a workshop? (Y/N) \c"
17 read dummy
# loop until user doesn't want to register for any more workshops
18 while [ "$dummy" = y -o "$dummy" = Y ]
19 do
20 echo
21 echo "Enter your name: \c"
22 read regname
23 echo
24 echo "For which workshop are you registering? \c"
25 read workshop
26 echo
27 echo
28 echo "Enter your school or company name: \c"
29 read school
30 echo
31 echo "For how many people are you registering? \c"
32 read people
33 echo
34 echo "Enter a voice phone number where you can be reached in case"
35 echo "there are any questions about your registration: \c"
36 read phone
37 echo
# write the registration data to disk
38 echo $regname >>signups
39 echo $workshop >>signups
40 echo $school >>signups
41 echo $people >>signups
42 echo $phone >>signups
43 echo >>signups
# allow the user to register for more than one workshop
44 echo "Do you wish to register for another workshop? (Y/N) \c"
45 read dummy
46 done
# tell the user how to log off
47 echo
48 echo "Type CNTRL-D to log off the system."
49 echo