Hi,
Quick question, I'm messing about with a test box at work (system v)
Basically I telnet to the server.
Get the following :
SunOS 5.9
login: (my name)
Password: (my password)
Last login: Thu Feb..... yada yada
(At this stage it takes over a minute to come to display the below, and show unix prompt)
Sun Microsystems Inc. SunOS 5.9 .. yada
$
I think its related to my profile,
any ideas why it takes soooo long to get to the prompt?
I'm using the standard profile below... just to get started... only it doesn't tell me if I have any new mail etc, which is strange.
(the user home dir is in /export/home/)
user is set up like below...
Login name: k****m In real life: Ke*** ****hie
Directory: /export/home/kennym Shell: /bin/sh
On since Feb 22 16:23:20 on pts/5 from 192.168.191.183
No unread mail
No Plan.
******************************************
# The profile that all logins get before using their own .profile.
trap "" 2 3
export LOGNAME PATH
if [ "$TERM" = "" ]
then
if /bin/i386
then
TERM=sun-color
else
TERM=sun
fi
export TERM
fi
# Login and -su shells get /etc/profile services.
# -rsh is given its environment in its .profile.
case "$0" in
-sh | -ksh | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac
umask 022
trap 2 3
***********************************
cheers.