Jayvo,
When an su command is issued, it is logged in /var/adm/messages and I believe ssh is the same.
You could write a cron job that searchs the /var/adm/message file for certain patterns. You could also write wrappers for ssh and su.
-Tony
Johnach,
The top command will give you the info you are looking for, here is an example view.
My dual cpu Linux box.
0:34am up 30 days, 15:19, 6 users, load average: 0.03, 0.05, 0.01
105 processes: 104 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.42% user, 1.29% system, 0.0%...
Richard,
Depending on which Desktop you are using, in GNOME, you just need to click on the GNOME paw foot (start in Windowz) and click logout, this will bring you to the console.
To always go to console first, you need to edit your /etc/inittab file.
You probably have;
id:5:initdefault...
Your question is not very clear. Are you asking for some code that allocates more than 1 MB of memory?
char *buf = NULL;
buf = (char *)malloc(2000000);
This is 2MB.
-Tony
I do not think this is possible, your laptop needs to be dual homed. One NIC for the internal network at work and another for you home connection.
For it to act as a router, you need 2 NIC's.
-Tony
I am trying to do a simple division with a llu, but it is not working???? I keep on getting 0 as the %d value in the second printf statment.
main(void)
{
printf("RLIM_INFINITY as unsigned %u = %d MB\n",
RLIM_INFINITY, RLIM_INFINITY/(1024*1024))...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.