Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by boebox

  1. boebox

    How can I log all or any ssh logins and have it send me an email

    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
  2. boebox

    Dual CPU

    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%...
  3. boebox

    Problem in /var/adm/messages

    What specific messages are you looking for? -Tony
  4. boebox

    Return from function without exiting

    Here is an example: #!/bin/sh rshfunc() { exec rsh hostname uname -a return 0 } echo "Calling rshfunc() ....." rshfunc exit 0 -Tony
  5. boebox

    How do you mount drives in the Redhat GUI

    As long as the mount information is configured in /etc/fstab, you can use usermount gui. -Tony
  6. boebox

    How do I shut down X-windows

    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...
  7. boebox

    what could be the Reason of error message.

    Looks like bad memory? What is [AFT0] -Tony
  8. boebox

    Hi, I am facing a very peculiar

    Show us the content of the dfstab, there maybe a typo? -Tony
  9. boebox

    EXTENDED AND EXPENDED MEMORY IN C

    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
  10. boebox

    delete linux partition

    Partition Magic is the best tool for this job. Tony
  11. boebox

    Linux newbie question

    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
  12. boebox

    How do I find ports being used

    Another great tool is lsof, this will list all open file descriptors. -Tony
  13. boebox

    Environment Settings in scripts

    DISPLAY=hostname:0.0 export DISPLAY #To test echo $DISPLAY -Tony
  14. boebox

    Using finger to find all logged in users

    On Linux, finger alone will do this. Read the man page. What system are you working on? -Tony
  15. boebox

    64-bit integers

    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))...

Part and Inventory Search

Back
Top