Software :: Discrepancy In Top & Ps Values?
Feb 24, 2011Please check this:PS:
Code:
ps -C mysqld -o 'pcpu,pid,rss,vsize'
%CPU PID RSS VSZ
[code]....
Please check this:PS:
Code:
ps -C mysqld -o 'pcpu,pid,rss,vsize'
%CPU PID RSS VSZ
[code]....
I have just installed the drivers for the scanner on my brother mfc5460cn. Xsane recognizes the machine but cannot open due to an invalid argument. The problem seems to be that xsane is looking for the machine at bus 1 dev 1 however, lsusb shows the machine at bus 2 dev 5.
How can I fix the discrepancy? I've tried sudo chmod a+w /dev/bus/usb but there was no change.
why, after booting to windows for any length of time that upon rebooting to Fedora the system time is 3 or 4 or 6 hours off? Sure, it is easily fixed with ntpdate but is there a more permanent fix?
View 11 Replies View RelatedI loaded the live CD (Gnome) and I got a warning about my Hard Drive, saying it was in danger of failing.Further details were that there were 360 Reallocated Sectors, and I should back data up and replace Hard DriveI re-ran test under windows, and it advised only 154 Reallocated Sectors, and that this was within acceptable tolerances.Is there any way to tell which tool is accurate?
View 7 Replies View RelatedX programs specify parameter "-display dpy". I have failed with many guesses at dpy values. I find no definition in man pages and elsewhere. I know it is simple. I request examples.
View 5 Replies View RelatedGetting half of a screen with big fonts
View 2 Replies View Relatedi am having two small issues with a function i have made.sorry if it is a mess, i am still learning bash.the first is calling the nonpersistssh function (second line) and assigning the return value to nonpersistdiag.the function returns 1, but nonpersistdiag seems to only contain 0. i am unsure on how to proceed.the second problem is the nested else clause on line 10. it is a syntactical error. how would i declare it correctly?
Code: function endsession(){
nonpersistdiag=$[nonpersistssh]# a function that returns an exit code
sudo /etc/init.d/ssh stop; sshdiag=$?
[code]....
how to retrive every portion separately from following file name? DSA4020_frontcover_20346501_2011-05.doc
I want to retrieve informations as below;
name = DSA4020
type = frontcover
id = 20346501
date = 2011-05
is it possible to do with sed??
i'm trying to change the resolution on a small device i have been making.. it has the X86 and i have installed the lasted ubuntu 9.10..
the only problem is that the monitor i am going to use very soon supports 480x234 resolution or 320x240 resolution.. set this resolutions into my xorg so that i can finally see a clear images onto the new 7" monitor..
I get this:
0000000 1202 0 0 0 0 0 0 0
0000020 141 89 63 89 141 0 0 0
[code]....
How to go from decimal to numerical values?
I can use hexedit to manually edit one or two hex values in a binary file, but if I want to change many of the, this is impractical. Is there any tool that will take parameters like Code: someTool filename byteNumber replacementByte ?
View 3 Replies View RelatedCode:
# ps
22355 pts/3 00:00:00 bash
#
# ps -l 22355
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 519 22355 22354 0 75 0 - 1338 wait4 pts/3 0:00 -bash
#
# ps -o pid,priority,command 22355
PID PRI COMMAND
22355 15 -bash
#
Why are the priority values of the process different? What is the difference? Is the value 15 the "nice" priority? Then, what is the value 75? Please, explain the difference of each result.
I couldn't really decide where this should be posted, but this is the most general of the forums. Anyway, I've been playing a wargame on intruded.net in which some of the challenges require me to pass hexvalues into the programs as character values. All is well with this, and usually I would use the shell to pass it in, but most of these programs use the gets() method to get my input.
Here comes the problem... The other day I was using my desktop which runs slackware 64 13.1 to do these challenges. My method was to use "echo -e 'xefxbexadxde'" to print them to the shell's standard output and then highlight and copy the resulting values to paste to the program. This works just fine on slackware, but when I repeated the same processes on Ubuntu 64 10.04 (which runs on my laptop) the 'xde' always turns up to be 'x00'. Then I tried some other levels with similar responses, not all the hex values convert to the correct ASCII characters.
Is there any way i can pass two / three values to grep. Basically i want to list the lines in the file with three different values. Currently I'm using three grep to get my work done.
EG: more Filename | grep text1 | grep text2 | grep text3
BRs
I have the following values in my log file:
...
2010-05-13 11:00:00 k_TRANSFER OK (11)
2010-05-13 11:30:01 m_TRANSFER OK (21)
2010-05-13 12:00:00 k_TRANSFER OK (12)
2010-05-13 12:30:00 m_TRANSFER OK (32)
2010-05-13 13:00:00 m_TRANSFER OK (13)
...
I want to replace every number with it's decrement. For example, the above values should be:
...
2010-05-13 11:00:00 k_TRANSFER OK (10)
2010-05-13 11:30:01 m_TRANSFER OK (20)
2010-05-13 12:00:00 k_TRANSFER OK (11)
2010-05-13 12:30:00 m_TRANSFER OK (31)
2010-05-13 13:00:00 m_TRANSFER OK (12)
I need to set ulimit values according to
I used
Code:
ulimit -c unlimited
ulimit -s unlimited
ulimit -u unlimited
But after I log again to my session values are set to default. Now can I set this values so they don't change after log out of after reboot?
The idea is to make a website to check the availability of domains and it works but its not pretty yet. Below is what i have till so far:
## this is the API from my domain registrar.
<?php $client = new SoapClient('http://api.sync.com/?wsdl');
## I have a search box that sends the request to this page
$var = $_GET ["s"];
## remove the most common subdomains from the request.
$var=eregi_replace("www.", "", $var);
$var=eregi_replace("mail.", "", $var);
$var=eregi_replace("ftp.", "", $var);
$var=eregi_replace("pop.", "", $var);
$var=eregi_replace("smtp.", "", $var);
## remove any TLD extension from the request.
$split = explode(".", $var);
$main = $split[0];
$arraysize = sizeof($split);
for ($x=1; $x<$arraysize; $x++) {
$tld .= "." . $split[$x];
}
## login to the API
$paramLogin = array('handle' => 'randall', 'password' => 'password');
## match the domain with any possible TLD
$varcom = $paramAvailDomain = array('sld' => $main, 'tld' => 'com');
$varnet = $paramAvailDomain = array('sld' => $main, 'tld' => 'net');
$varorg = $paramAvailDomain = array('sld' => $main, 'tld' => 'org');
$varbiz = $paramAvailDomain = array('sld' => $main, 'tld' => 'biz');
$varinfo = $paramAvailDomain = array('sld' => $main, 'tld' => 'info');
$vareu = $paramAvailDomain = array('sld' => $main, 'tld' => 'eu');
$varnl = $paramAvailDomain = array('sld' => $main, 'tld' => 'nl');
$varbe = $paramAvailDomain = array('sld' => $main, 'tld' => 'be');
$varde = $paramAvailDomain = array('sld' => $main, 'tld' => 'de');
$varcouk = $paramAvailDomain = array('sld' => $main, 'tld' => 'co.uk');
$varorguk = $paramAvailDomain = array('sld' => $main, 'tld' => 'org.uk');
$varname = $paramAvailDomain = array('sld' => $main, 'tld' => 'name');
$varmobi = $paramAvailDomain = array('sld' => $main, 'tld' => 'mobi');
$varin = $paramAvailDomain = array('sld' => $main, 'tld' => 'in');
$vartv = $paramAvailDomain = array('sld' => $main, 'tld' => 'tv');
$varcn = $paramAvailDomain = array('sld' => $main, 'tld' => 'cn');
$varws = $paramAvailDomain = array('sld' => $main, 'tld' => 'ws');
$varnu = $paramAvailDomain = array('sld' => $main, 'tld' => 'nu');
$varbz = $paramAvailDomain = array('sld' => $main, 'tld' => 'bz');
$varcc = $paramAvailDomain = array('sld' => $main, 'tld' => 'cc');
## this requests the domain.COM and domain.NET
$varcom;
$varnet;
?>
<div id="content">
## below prints the result
<?php
print "<html><body><pre>";
$result1 = $client->__soapCall('Login', $paramLogin);
echo "<b>Result Login:</b>
" . print_r($result1, true);
$result15 = $client->__soapCall('AvailabilityDomain', $varcom);
$resvarcom = var_dump($result15, true);
$result15 = $client->__soapCall('AvailabilityDomain', $varnet);
$resvarnet = var_dump($result15, true);
print "</pre></html>";
?>
<?php
## the returned array looks like this
Result Login:
Array
(
[code] => 200
[message] => Login succesful
)
array(3) {
["code"]=>
string(3) "200"
["message"]=>
string(20) "Domain not available"
["result"]=>
object(stdClass)#236 (1) {
["status"]=>
string(5) "TAKEN"
}
}
bool(true)
array(3) {
["code"]=>
string(3) "200"
["message"]=>
string(16) "Domain available"
["result"]=>
object(stdClass)#232 (1) {
["status"]=>
string(4) "FREE"
}
}
bool(true)
?>
## till so far it works
What I need to do is to make this ugly looking reply in to something more readable, basically if TAKEN print occupied and if free print its yours to grab. I have been struggling with the in_array function but i'm not getting anywhere close in getting it to work.
I have been reading the Wikibook on C Programming for quite some time and am up to the variable part. I did learn several new things, like that too many variables hog memory.
What I want to know is how to assign a variable to the keyboard (in the C/C++ family) as such that the user has to type it in.
I have the following snippet HTML code:
Quote:
<table id="profile">
<tr>...............</tr>
<tr>
<td width="40%">
[Code].....
How can pass values in args[0] and args[1] to Perl/CGI script?
I created a class which has to return an array. My problem is I need to return 3 entries per record for example:
Code:
array(
"2009-06-13", "John", "Doe";
"2009-06-13", "Paul", "Simon";
"2009-06-12", "Frank", "Herbert";
);
Can this be done? What is the syntax? Where is the documentation? If this can't be done, How would you return this to a class without using a DB?
I have a application in C++, and now I have two class. MyDialog is the class that main function launch. In MyDialog class there are four elements and when I click over theese elements, there is a MousePressEvent that launch other class, Touchpad class. So, in some moments, I have loaded two class. My question is, how can pass a value from Touchpad class to MyDialog class, when I close (destroy) Touchpad class. In a few words, is it possible to communicate values between class?
View 5 Replies View RelatedI'm having this problem with my CentOS install
when i run df -h i get something like this:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
672G -551M 638G 0% /
/dev/hda1 99M 12M 82M 13% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
I am developing a script to automate some database setup, but I have an issue I cannot figure out. I prompt for some input with whiptail and select a default if nothing is entered. However, if you do not enter anything, it normally returns 0, but this time it is returning an empty value.
Code: Select all # This one does work!
# Set the source path
TMPPATH=$(whiptail --backtitle "Linux Build Configuration"
--title "Source-Code Path"
--inputbox "Default: $SRCPATH" 0 60
3>&2 2>&1 1>&3)
[Code] ....
So what is wrong with the second code?
I'm currently using Fedora 12.I'm having trouble ripping a DVD. Every time I use cropdetect in Mplayer, it gives me negative x,y values which makes it impossible for me to use Mencoder to remove the borders. I shall display the info below. Also, may I add that I'm trying to use 2 pass encoding to recieve better video quality. I would like convert the DVD to an AVI file. I've compiled all the binary codes for various codecs so I'm not sure what's wrong.
Also, it can not find any audio tracks on the DVD either. I was successfully able to rip the trailor for a different movie on the DVD to avi which was track 3 no problem (wiith good quality sound that synced up)I'm new to Fedora and Mplayer/Mencoder, but "WinBlows XP" doesn't seem to help with ripping good quality videos so I decided to try something in Fedora.
I am looking for comprehensive documentation of the SMART values that are reported in Palimpsest.For example, I am getting the following result:
Attribute: Reallocated Sector Count
Assessment: Warning
Normalized: 100
Worst: 100
Threshold: 36
Value: 1 sector
I would like to find a very thorough description of the meaning of these values, how they relate to each other, and how to interpret them.
I had installed ubuntu 10.10 long back but never really used it much due to academical commitments. I had installed ubuntu on a separate partition of 20 gb. I don't remember exactly what all values I had selected for various partition and I was very much confused while installation! I somehow managed to install it and this is what I got while booting my laptop! Apart from that my home and desktop size were very less.
I remembered myself giving 6 gb to swap (as I considered swap to be important). Here is what I get when I mount type in terminal!! I have downloaded the new ubuntu 11.04 and I want to start over again by totally formatting my 20 gb hard disk that I created!! Also I want to keep at least 30 gb for my new drive! What sizes exactly should I used for this installation for various file systems!
Does anyone know what the Inet/AMD instruction 'nopl' is or does anyone know where I can find a list of hex values for the Intel/AMD instructions. nothing important is waiting on this reply.
[Code]...
I have a variable in which the data is stored as below:
variable_test=0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s 0m0.001s .....an so on.
There are lots of values in format like "3m1.057s" are stored in variable_test separated with an space between two such values. For exapmple, value is "3m1.057s" I need to save different parts of a value in three separate array variables such as the
var_hour=3
var_min=1
var_sec= 057
tell if this can be done using "awk". A "WHILE" loop might be used to separate and store theses values I guess?
I would like know in which file is the machine name, os type and processor architecture stored in? I would like to know the path to those files where the value for os is i386 and machine i686 is something like this, in which file the systemuser and the number of users of that system is stored
/usr/src/redhat/RPMS/ ...
In these files i686 and I 386 is stored as directories and not as values but I want them as values in the file.
I've implemented a few custom system calls in my Ubuntu kernel, but I'm having some issues with the return values. Each function returns a variety of non-negative integers depending on which error is encountered. However, when I'm testing the system calls, the only negative value that gets returned to the user program is -1, regardless of what I have in the code.
Is there some special path I have to take to get the proper return values?