/etc/profile

From: Rob (rshahamat_at_hotmail.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 10:47:48 -0500

I need to be notified whenever a user log on to my solaris machine. I plan
to put the following script in
 /etc/profile

echo 'Subject: <ServerName>: ALERT - <username> login on:' `date` |
/usr/sbin/sendmail -s <email address>

Do you think if it works?

if so, right now I have some script in /etc/profile (i think its there by
default), should I just add the above script into the end of the profile?

What should i put for <username>? should I leave it as is?

thanks for any help.
Rob



Relevant Pages

  • Re: October 2nd and Answers: Dominions 3
    ... same in Civ4. ... Military advisor is probably the best plan, but that's no better than Dom2 ... inability to deal with growing micromanagement issues in the late game. ... Obviously, the script is identical (unit positioning, ...
    (comp.sys.ibm.pc.games.strategic)
  • Re: NASPER BECOMES LAW
    ... >>> some of us have found Medicare Part D plans that work. ... > zero for generic, til 250 have been paid between me and insurance co., ... >>> this beats the script plan i had with hubbies employer. ...
    (alt.support.chronic-pain)
  • Re: NRT
    ... script of NRT, he prescribed me with 15mg of the nicorette patch which I ... Well I will let you know the day I take my final quit, ... but it's true: Failing to plan is planning to ...
    (alt.support.stop-smoking)
  • Re: Running a script at boot
    ... >>number values of each service determining their sequence in the stack, ... A much simpler way to run a script at boot is to put it in the ... "It follows that any commander in chief who undertakes to carry out a plan ...
    (Fedora)
  • Re: Good lord, when do I get to actually program?
    ... and for a while I was using a script generator to make the ... >> But I plan on re-reading all these posts and keeping at it. ... I don't have any Microsoft IDEs yet, ... > plan on getting the one for C#, and eventually Web Developer. ...
    (microsoft.public.dotnet.languages.csharp)