Activity Stream
48,167 MEMBERS
63078 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member

    Lightbulb Linux system info ( C)




    Compiled Binary ( compiled using gcc )

    http://dl.dropbox.com/u/8626323/c/sysinfo

    usage instructions :
    source .. nothin complex

    to compile

    save the code to a file and call it sysinfo.c, then use gcc to compile it
    gcc sysinfo.c


    PHP Code: 
    #include <stdio.h>
    #include <sys/sysinfo.h>
    int main(){
    int dayshoursmins;struct sysinfo KWWH_sysinfo;
    if(
    sysinfo(&KWWH_sysinfo) != 0)perror("sysinfo");
    days KWWH_sysinfo.uptime 86400;hours = (KWWH_sysinfo.uptime 3600) - (days 24);mins = (KWWH_sysinfo.uptime 60) - (days 1440) - (hours 60);
    printf("KWWHunction linux Info\n");printf("Uptime: %ddays, %dhours, %dminutes, %ldseconds\n",dayshoursminsKWWH_sysinfo.uptime 60);
    printf("Load Avgs: 1min(%ld) 5min(%ld) 15min(%ld)\n",KWWH_sysinfo.loads[0], KWWH_sysinfo.loads[1], KWWH_sysinfo.loads[2]);printf("Total Ram: %ldk\tFree: %ldk\n"KWWH_sysinfo.totalram 1024,KWWH_sysinfo.freeram 1024);
    printf("Number of processes: %d\n"KWWH_sysinfo.procs);return 0;

    desiboy Reviewed by desiboy on . Linux system info ( C) http://cdnpic.com/upload/5bab0549.png Compiled Binary ( compiled using gcc ) http://dl.dropbox.com/u/8626323/c/sysinfo usage instructions : wget http://dl.dropbox.com/u/8626323/c/sysinfo Rating: 5
    Coding Horror Fan
    I don't read PM's frequently .

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    Google.com
    Can you get on msn and stop acting like a kid please ?

  4.     
    #3
    Member
    no..I am working on a database . almost done
    Coding Horror Fan
    I don't read PM's frequently .

  5.     
    #4
    Member
    well its about time I couldn't find it when TTS told me 2 look hmm
    Please follow signature rules

  6.     
    #5
    Member
    common , I know that every one knows "C" here ...
    add some more nice functions to this
    Coding Horror Fan
    I don't read PM's frequently .

  7.     
    #6
    Member
    Website's:
    Google.com
    Can you free some space in your inbox ?

    and get on msn too

  8.     
    #7
    Member
    done..
    btw this is a thread in programming section
    Coding Horror Fan
    I don't read PM's frequently .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [VPS] 9xhost.info - Linux VPS Starting at $7.75 [NL/US]
    By pubic_html in forum Archive
    Replies: 55
    Last Post: 6th Jan 2012, 12:26 AM
  2. [Shared] [NL] www.WTFHost.info - Shared Linux Hosting - Offshore
    By Derka in forum Archive
    Replies: 3
    Last Post: 2nd Jan 2011, 03:10 AM
  3. Get FULL System Info using Batch + Explained ;)
    By l0calh0st in forum Web Development Area
    Replies: 1
    Last Post: 2nd Oct 2010, 01:14 PM
  4. [AMS] xSysInfo - Get all info about your System
    By l0calh0st in forum Web Development Area
    Replies: 4
    Last Post: 1st Aug 2010, 01:28 PM
  5. Linux File System Explained For Beginners
    By Plutost in forum Tutorials and Guides
    Replies: 4
    Last Post: 7th Sep 2009, 04:07 PM

Tags for this Thread

BE SOCIAL