Programming :: Get System Current Status To C Program From 'htop'
Jan 17, 2010
Actually I suppose to use this "htop" command to get the system utilities like current processor speed ,running programs ,memory usage(ram and swap) to my program. I planned to get it using popen(). I was success popen("top | grep Mem", "r") with top command. But are there a way to take such information using "htop". Or are there any idea of taking current CPU,MEM,Swp usage as well as Tasks and running tasks using htop or other way to C program...
View 1 Replies
ADVERTISEMENT
Jul 7, 2010
I just built a server, which displays 8 cores in the i7 processor. However, because of the 2 threads per core, it shows up as an 8 core system. When viewing htop, it shows system loads at 0.29,0.18, and 0.13 for respective averaging times. How would I calculate actual system load for this processor? Would I divide the average by 4 or 8? Or, is there another method?
View 7 Replies
View Related
Apr 15, 2010
Is it possible to have htop display a graph in the panel same as System monitor does?
View 4 Replies
View Related
Dec 25, 2010
How can I print the current time of my system with a batch file. My os is ubuntu.
View 4 Replies
View Related
Jul 28, 2010
I'm using Squeeze, and haven't seen an update in the Debian repo for some time. Seeing as it's due for release soon (September), can we expect some updates in the near future? I had been using Gnome Shell in Ubuntu with much success, including compiling my own. These days, I cannot afford the bandwidth, and have encountered an unknown problem [URL] under Debian Squeeze. Currently, I'm experiencing a very annoying flickering issue using the repo version which I know does not exist anymore in the current gnome development. To have at least one update now before the release date would be nice to see.
View 14 Replies
View Related
Apr 17, 2011
I'm trying to compile a program from source. When I run make the following appears:./ config. status --recheck make: ./config.status: Command not found make: *** [config.status] Error 127.There is no file called config. status in the current directory. Why was it not created?
View 1 Replies
View Related
Apr 17, 2010
I'm starting to bump into crusty software in Lenny and am looking to upgrade to Squeeze. However, there's no release notes yet and Googling for upgrade directions yields all kinds of variations, some of which talk about "interesting" issue. Thus, my questions:
1. How hard/messy is the Lenny to Squeeze upgrade at this time?
2. Where can I find straightforward, clear directions on how to upgrade?
For quite some time, I just stayed on testing and incrementally upgraded on a regular basis, but stopped after Lenny came out because security support was suspended. Now I'd like to climb back on that train.FWIW, I originally installed Slink in 1999 and haven't reinstalled from scratch since, despite several generations of hardware upgrades.
View 14 Replies
View Related
Apr 30, 2011
I want to add my C program's path to the environment variable PATH. My C program called "md5". So that I can execute it from anywhere (i.e any directory). My md5 program is located at "/home/ahuq/MappingServer/md5_program". So what I did was to put: "export PATH=$PATH:/home/ahuq/MappingServer/md5_program" in the running SHELL. This only makes temporary changes and lets me run the "md5" program from anywhere temporarily.
root@ahuq-kitchen:/home/ahuq# md5 -sanis MD5 ("anis") = 38a1ffb5ccad9612d3d28d99488ca94b But I want to make this change permanent. I tried to put the line "PATH=$PATH:/home/ahuq/MappingServer/md5_program" at the end of "/home/ahuq/.bashrc" and "/home/ahuq/.profile" files. I logged out of the SHELL and
went in again. But it didn't work:
root@ahuq-kitchen:/home/ahuq# md5 -sanis
No command 'md5' found, did you mean:
Command 'cd5' from package 'cd5' (universe)
Command 'mdu' from package 'mtools' (main)
Command 'mdb' from package 'mono-debugger' (universe)
md5: command not found
Maybe I am putting the PATH statement in the wrong place of the above mentioned files. There are a lot if-else-fi structures inside those two files. Do I need to put the PATH statement inside any of those structures? Do I just logout or do I have to restart the system to make the changes active?
View 8 Replies
View Related
Oct 5, 2009
I went to the sun website but all I see are upgrades to JDK 6, I dont see where to download the actual JDK.
Anyone know where I can download the JDK for Linux?
View 9 Replies
View Related
Jan 27, 2011
I need to change the some configuration in httpd.conf file with out affect any current status of http service.
View 3 Replies
View Related
Sep 13, 2010
Okay, just wanted to be perfectly clear on this point... /static/ software builds don't link to /any/ shared libs, right? I.e., can a static-built C program run on a system without a libc installed?
View 1 Replies
View Related
Jul 21, 2010
I need to monitor the amount of free physical memory on Linux from within a large C program. The sampling will occur very frequently, so the measurement cannot be performance intensive. The fact that Linux uses much of the theoretically free memory for cache and buffers means that just measuring the free pages is not sufficient. Using free + cache + buffers gives an overestimate as not all cache/buffers can be freed, but I could get a rough idea of how much generally can't and subtract that from the answer.
Possible options that I've come across so far are: Parsing /proc/meminfo - but that involves reading from file which is slow. Extracting the free, cache and buffers values from the output of the Free command - but is there a quick way to do this? Parsing the /proc/freemem file produced by the API here - but this is again reading from file. Is there a way to get that output directly? Speed is an extremely high priority, and the answer it must accurately represent the amount of memory that my program could expand into (to within a few Mb).
View 1 Replies
View Related
Mar 22, 2010
I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):
#!/bin/sh
clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"
View 5 Replies
View Related
Apr 3, 2011
I have C++ source code(*.cpp) files that expects it's header files in System's include folder which is/usr/include.The cpp files has include lines like this:
Code:
#include <some.h>
#include <another.h>
[code]...
View 3 Replies
View Related
Dec 11, 2010
I am looking for a program with a web interface to show my servers hardware status. hdd usage, cpu load, memory etc.
View 9 Replies
View Related
Jan 30, 2011
I am looking for a program with a web interface to show my servers hardware status. hdd usage, cpu load, memory etc.
View 2 Replies
View Related
Jun 29, 2010
I am trying to install Matlab v. 7.10 on my Ubuntu machine. I was able to successfully download the necessary files. However, when I attempt to install using ' ./install ', I get the following error message:
Finished extracting ftp files.
Starting installer ...
An error status was returned by the program 'xsetup', the X Window System version of 'install'.
The following essages were written to standard error:
/home/user1/mathworks_downloads/update/install/main.sh: 178: /home/user1/mathworks_downloads/update/bin/glnxa64/xsetup: not found
Attempt to fix the problem and try again. If X is not available or 'xsetup' cannot be made to work then try the terminal version of 'install' using the command:
install* -t or INSTALL* -t
Sorry! Setup aborted . . .
I tried using the command instal* -t, as recommended by the program, but then I get this error message:
Finished extracting ftp files.
Starting installer ...
awk: cmd. line:2: BEGIN { found = 0; extra = 9; min = 24; default = 24 }
awk: cmd. line:2: ^ syntax error
awk: cmd. line:6: if (nrows < min) nrows = default
awk: cmd. line:6: ^ syntax error
awk: cmd. line:12: END { if (found == 0) print (default - extra) } .....
View 3 Replies
View Related
Oct 31, 2010
I met some problems with installation of Matlab2010a for Unix.My edition of ubuntu is 10.04 and I downloaded an iso file of ubuntu and extract that in this document: /home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/
when I start to install, it showed :
------------------------------------------------------------------
An error status was returned by the program 'xsetup',the X Window System version of 'install'. The following messages were written to standard error:
/home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/update/install/main.sh: 178: /home/edwardli/temp/Mathworks.Matlab.R2010a.UNIX/update/bin/glnx86/xsetup: Permission denied[code].....
View 2 Replies
View Related
Nov 14, 2010
I would like to ask you if you know a program that can show the current cpu's and gpu's temperatures.
View 9 Replies
View Related
Feb 1, 2010
<Edit> Got it fixed. Didn't put the correct res in the xorg.conf file...Sheesh...None the less, this is the moment that I do a little dance around my little space...I got current up and running with only asking this dumb question...Hoo howdy...It's GRRRRRRRRRRRREAT...Now to test to see if everything I had on 12.2 will compile...So far gbdfed is not doing so.../edit>Sorry if this has been posted before, and I will look for it later if no one replies, I'm just bloody burnt out at the moment...Hooked up 122gb hd, and rather than spend the hours reading up on dd, I decided to try 13.0...Lo and behold my 845g didn't work, which I had suspected would have been the prob...So I fuddled around, read, and read, and read some more...Upgraded to current, based on a thread here...Forgot to check lilo for any errors...Hoo boy, what fun...Current changed the drives from hd# to sd#. Had to use my old zenwalk 5.2 disk to chroot in order to fix that. Then something else went wrong. Well, now I know what mkinitrd is good for, . Well, fuddling around some more, installing this intel driver, installing that intel driver until I finally found something that worked...However, I get better frame rate with glxgears than I did on 12.2, but when I move any windows they are a little choppy, plus the little tiny fonts which is rather annoying...Anyway, what else should I look at? Could it be xinarama support which I don't need?
View 2 Replies
View Related
Apr 3, 2011
when i call the "system()" function from my C program everything works well, but when i try to call it from a cgi C program it doesn't work. the server log tells me this is a permission error.i have chmod'ed 755 the cgi program but it still does not work.
View 5 Replies
View Related
Sep 30, 2010
In Fedora 13 64 bit, Ctrl+C does not terminate the running programing in terminal window but in Unbuntu this shortcut key works. If I hit Ctrl+Z, this makes the running program run in background which is something I definitely dont want. what is the shortcut for terminating a program in terminal window? What is the shortcut key for canceling the command I have typed but not run yet no matter where the cursor is in the command ? Ctrl+U works but only if cursor is at the last character of the command.
View 8 Replies
View Related
May 26, 2011
vlock works, however it requires that I return to the shell to run it. Is there a way to assign a key combination to run vlock, so the current program doesn't have to be ended?
View 3 Replies
View Related
Oct 4, 2010
im searching a kde programm to show current print jobs. I've installed aptosid (actual version).I've searched the repository and I only found printer-applet which does not run in aptosid - I got the following error messages:
Code:
Traceback (most recent call last):
File "/usr/bin/printer-applet", line 1161, in <module>
[code]...
View 2 Replies
View Related
Feb 23, 2011
I was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
View 9 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
May 25, 2010
How can I programatically know the status of a process if its PID is known?
View 1 Replies
View Related
Dec 20, 2009
I can't seem to get BOINC to run on F12. I've installed it from the repositories and downloaded it from the BOINC website. I keep getting an error message "Error Retrieving current status".
View 4 Replies
View Related
Jan 7, 2009
I'm trying to compile a c++ application in KDevelop in Ubuntu 8.10. I get this error on Distclean:
aclocal
autoheader
automake
[code]....
View 19 Replies
View Related
Apr 27, 2010
How to find in linux(fedora12) if dhcp is running on network?
View 3 Replies
View Related