[comp.unix.aix] 2 probably frequently asked questions

stsiegem@uokmax.ecn.uoknor.edu (Stephan Siegemund-Broka) (06/13/91)

These are probably faq's but here goes: is there a simple way to 
have the csh prompt that "You have mail", when you login (I don't mean
biff y) I tried writing a ksh script that copied the .profile file but
it didn't seem to work.

also I just updated to 3.5/2006 and it says that i am supposed to
change line 54 of /usr/bin/info from xrdb to xmodma, but a grep on
/usr/bin/info shows no occurances of xrdb? Thanks, please respond via
mail.

shair@ux1.cso.uiuc.edu (Bob Shair) (06/14/91)

stsiegem@uokmax.ecn.uoknor.edu (Stephan Siegemund-Broka) writes:

>These are probably faq's but here goes: is there a simple way to 
>have the csh prompt that "You have mail", when you login?

In the user's ".cshrc" file:

    set mail = (/usr/spool/mail/$USER)

In the user's ".login" file:

    if !(-z $mail) then
      echo You have new mail
    endif
-- 

Bob Shair                          shair@chgvmic1.vnet.ibm.com
Scientific Computing Specialist    SHAIR@UIUCVMD (bitnet)
IBM Champaign