home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
sdf
/
historical
/
pbbs.NEW
< prev
next >
Wrap
Text File
|
1995-01-27
|
717b
|
44 lines
#!/bin/sh
trap "" 2
pbbs=/usr/local/lib/pbbs
PATH=$pbbs:$PATH
export PATH
ans=blah
if [ "$1." = "." ]
then
menu=main
if [ -f $HOME/.pbbsrc ]
then
exec `cat $HOME/.pbbsrc`
fi
else
menu=$1
fi
while [ "$ans." != "." ]
do
tput clear
mesg="TERM=$TERM"
if [ -s /usr/mail/$LOGNAME ]
then
mesg="* mail *"
fi
echo "PinkBBS \"Pro\" v1.5 ($mesg)"
echo
cat $pbbs/$menu
echo
echo "($menu): \c"
read ans
cmd=`grep "^\[$ans\]" $pbbs/$menu | cut -f2 -d"(" | cut -f1 -d")"`
tput clear
if [ "`echo $cmd|cut -c1-4`." = "pbbs." ]
then
exec $0 `echo $cmd|cut -f2 -d" "` $menu $2 $3 $4 $5 $6
else
sh -c "exec $cmd"
fi
done
if [ "$2." != "." ]
then
exec $0 $2 $3 $4 $5 $6
fi