: run this
script through
/bin
/sh
echo 'Welcome to the PSI White Pages Pilot Project'
if [ \
( "x$USER" = "xxwp" -o "x$LOGNAME" = "xxwp" \
) -a -x @
(BINDIR
)xwp
]; then
if [ "x$TERM" = "xxterm" ]; then
if [ -x @
(BINDIR
)xwp
]; then
X
="`who am i | sed -e 's%.*(\(.*\))%\1%'`"
if [ -l "$X" -ge 16 ]; then
echo 'If you want X window access, please enter your DISPLAY name,'
if [ "x$X" != "x" ]; then
if [ "x$DISPLAY" = "x" ]; then
echo 'otherwise, if you do not wish to use X, enter "none"'
echo -n 'DISPLAY (default='$DISPLAY')='
echo 'e.g., "192.33.4.21:0.0"'
if [ "$C" = "fred" ]; then
echo 'Try "help" for a list of commands'
echo ' "whois" for information on how to find people'
echo ' "manual" for detailed documentation'
echo ' "report" to send a report to the white pages manager'
echo 'To find out about participating organizations, try'
echo ' accessing service, please wait...'
echo 'To find out about participating organizations,'
DISHDRAFT
=/tmp
/fred$$
export DISHDRAFT
exec /bin
/csh
-ic "@(BINDIR)$C -a -l -r"