LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   motd script or something like that (https://www.linuxquestions.org/questions/linux-general-1/motd-script-or-something-like-that-191577/)

linuxtesting2 06-09-2004 01:33 PM

motd script or something like that
 
when someone login to my box, i want to display things like:

lastlogin
uptime
users
++++

i guess there are script for this out there somewhere, can someone paste me some links :)


And does someone have a good guide to setup imap :)


-ole

david_ross 06-09-2004 01:40 PM

What about:
Code:

LAST=`last $USER | head -n2 | tail -n1 | awk {'print $3" "$4" "$5" "$6'}`
echo "You last logged in on $LAST"
uptime

For IMAP take a look at:
http://www.inter7.com/courierimap.html

linuxtesting2 06-09-2004 02:13 PM

ok...but what if i also installed quota...and want to display how much diskplace each user have :) ?


-ole


All times are GMT -5. The time now is 09:42 PM.