Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ittc!fpb From: fpb@ittc.wec.com (Frank P. Bresz) Newsgroups: comp.unix.admin Subject: Re: something like motd question Message-ID: Date: 17 May 91 11:44:43 GMT References: <1746@targon.UUCP> Sender: news@ittc.wec.com Organization: Westinghouse, ITTC, Pgh, PA. Lines: 36 In-reply-to: andre@targon.UUCP's message of 16 May 91 21:22:42 GMT In article <1746@targon.UUCP> andre@targon.UUCP (Andre van Dalen) writes: >In article bshaw@hcmv2.ti.com (bob shaw) writes: > >I would like to have a file that is read when a user logs in > >*IF* this file has been updated since it was last read by this > >user. This file would contain specific system news info, etc and > >would constantly be changed by the sys_admin. >You could add something like this to /etc/profile, >put your message in the file /etc/new_motd, . in the next lines >is the users home directory, which is where his shell starts. >(This example uses /bin/sh as login shell.) >if [ -n "`find /etc/new_motd -newer . -print`" ] >then > cat /etc/new_motd > touch . >fi [sig deleted] Hi There, I am considering switching the bulk of the population from sh to csh just so I can more easily customize (via /etc/profile) the way I want user accounts to behave. With over 400 users what are the chances that I can put something into /etc/profile to correctly switch them to .cshrc/.login after giving them information perhaps setting ENV variables or whatever. I know I can exec csh but I can't be certain what the right thing to do is. Any help appreciated. -- | () () () | Frank P. Bresz | Westinghouse Electric Corporation | \ /\ / | fpb@ittc.wec.com | ITTC Simulators Department | \/ \/ | uunet!ittc!fpb | Those who can, do. Those who can't, simulate. | ---------- | +1 412 733 6749 | My opinions are mine, WEC don't want 'em.