Hi All,
I am having a problem with a small script I wrote to overcome the problem
of beign able to check for presence of email in my account while logging
on to different servers of the same network. The plan is to issue a rsh
command every time I log on to a server different that the one I have my
home account set up and as the command to be executed to give the name of
the script. The script I wrote for this purpose is as follows:
/bin/mail -e
switch($status)
case 0:
echo "You have new email."
breaksw;
case 1:
echo "You have mail."
breaksw;
endsw
I tried it but it comes up with an error message saying unexpected switch
statement. I am using tcsh on a Sun 5 machine. Does anyone have any
suggestion?
Thanks in advance.
George