General :: Find A Relative Statement Of Each Kernel Process?

Apr 23, 2011

as the title,I want learn how it works.

View 1 Replies


ADVERTISEMENT

General :: Find Out How Much Time An Already Running Process Is Spending In User And Kernel Spac?

Jun 8, 2011

I am currently struggling with one of my tasks.I was asked to find a way how to determine how much time an _already running_ process is spending in user and kernel space.E.G. <some tool> <pid>[Control] + [c]<pid> spent 12.1 seconds in user and 1.52 seconds in kernel space.Does something like this exist? Basically I guess I am looking for something similar to time, except that the process is already running.So..a) Is there a tool which fulfills this task?b) Is there a way to write your own software which does the job? Is it even possible to code something I am looking for?I recently found strace -c -p <pid>, but well, this is not exactly what I was looking for.

View 3 Replies View Related

General :: Find Statement For Multiple Folder Names?

Jan 21, 2010

right now i'm doing a find . -type d -iname "z*" to find all folders who's name starts with z or Z.

Is there a way I could with one command find all folders who's name starts with the letters M through Z, without having to do the same command over and over and just changing the letter each time?

View 15 Replies View Related

General :: Find The Parent Process Of A Zombie Process?

May 4, 2010

How do you find the parent process of zombie processes?

When the child process is something where the parent is not entirely obvious...

Is there some way to list processes in tree format or something?

View 3 Replies View Related

Debian :: Find & Modify Path Statement

Jul 19, 2011

I am running Debian Squeeze, 64-bit.I would like to try my hand at bash scripting. So at the author's suggestion (first chapter of Chris F. A. Johnson, Pro Bash Scripting from apress) I created a /bin directory in my home directory. So now I would like to modify my PATH statement so that when I run a script from my bin directory my shell will find it.I did that. He then says that I should add this to ".bash_profile, .bashrc, or .profile depending on how bash is invoked." The find command is unable to locate any of these files. So I searched the forum, found the link above and tried to follow that. No luck so I assume that how Debian handles PATH statements has changed since that post?

I also have checked the wiki and worked Google as hard as I know how to do.Very simply where the heck is my PATH statement and how do I modify it?

View 4 Replies View Related

Programming :: Shell Script For Adding A Statement In A File After A Particular Statement?

Jun 28, 2010

We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated. This file contains a statement as "ECHO="echo"".f we run "Automake", without modifying the "libtool" the system hangs and theputer needs to be restarted.Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.I think a script can be written which does the above on its own.I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.

View 4 Replies View Related

General :: Find The Pid Of A Certain Process?

Feb 4, 2011

I know that this command
"pid aux | less"

displays all the processes and their pid but it would be too time consuming to search for the pid of one specific process is there a way to use "grep" to find pid of a certain process?

i tried "grep process-name pid aux"

View 3 Replies View Related

Programming :: Perl Switch Statement Throwing Error Like Bad Case Statement (invalid Case Value)?

Oct 6, 2010

I've written a simple perl code to learn switches in perl.My code is pasted below,

#!/usr/bin/perl
$opt = 1;
switch($opt) {

[code]...

View 3 Replies View Related

General :: How To Find Out What Process Is Accessing HDD?

Apr 8, 2010

I can see that the light of the HDD is flashing. I would like to find out what the process is that is accessing the HDD. Is there a way to achieve this?Is there a utility that ties up processes with hw resources?

View 1 Replies View Related

General :: Finding The Process ID Of Kernel?

Apr 15, 2010

How can we find out the Process ID of Kernel? Is kernel in itself not a process which is running and handling the overall system calls and program executions?

View 4 Replies View Related

General :: Make Rsync To Use Relative Path?

Sep 6, 2011

I want to sync remote database copy using command

As it's result command creates file /backup/snapshots/backup/databases/mysql.sql. How can I force it to put file in /backup/snapshots/mysql.sql? It's mandatory that source must be remote (it's part of more complex script).

View 1 Replies View Related

General :: Find Out What Process Are Eating All Memory

Jul 8, 2011

Im using SUSE, i have 31GB of memory Mem: 31908592k total, 31429632k used, 478960k free, 12176k buffers. How do I find out what process are eating up all my memory.

View 3 Replies View Related

General :: Find Memory Leak For Process

Mar 5, 2010

Is there any link where i can get information about below?

Dirty memory
RSS
PSS
One more?

if a set of process are getting executed in a use case say 50 times. How do one know the memory leak for a particular process?

View 1 Replies View Related

General :: Slow Down The Kernel Boot Process?

Oct 14, 2010

I'm trying to upgrad from kernel 2.6.32.9 to 2.6.34.3 and I'm having problems.The boot finished with that old gem "Kernel panic - not syncing: Attempting to kill init !"I suspect that it's something to do with my PATA IDE driver because there have been kernel changes in this area.My problem is all the boot messages scroll off the top of the screen before I can read them and it's no use saying look at dmesg or /var/log/messages because the root fs isn't there - another reason why I think it's to do with the drivers.So my question is, is there some way I can slow down the boot process so that I have a chance of reading the messages ?

View 4 Replies View Related

General :: What Is The Module That Is Used To Process Font In Kernel

Oct 28, 2010

what is the module that is used to process font in Linux kernel?

View 4 Replies View Related

General :: Kernel With Non-preemptive Process Scheduling?

May 1, 2010

how to modify kernel source to make its process scheduling to non-preemptive and FCFS ?

View 2 Replies View Related

General :: Http - Find Out Which Process Is Listening On A Port?

Mar 16, 2011

How can I find out which process is listening on a port on linux?

View 5 Replies View Related

General :: Filesystems - How To Find Which Process Had Created Any File

May 16, 2011

Is there any way to know which process had created any file in Linux Red Hat/CentOS 5?

View 2 Replies View Related

General :: How To Find (and Kill) Process Running On A Certain Port

Aug 12, 2011

Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?

View 4 Replies View Related

General :: Command To Find Parent And Child Process?

Apr 21, 2011

I have a script that calls other scripts/commands which may or may not spawn other process. From my understanding, when I do a ps -ef, the highest numbered process ID is supposed to be the parent ID of all the other related child processes, is this correct? In most or all circumstances, I do a ps -ef | grep <processid> of my script and anything that spawns off that process IDs I assumed are the child processes of my script. If I want to terminate my script and all other child processes, then I kill the parent ID which is the highest numbered PID and this will subsequently kill all other child process IDs, is this correct?

Now, my question is whether there is any quick way of showing what are the child processes of a parent ID instead of what am currently doing now which is visually checking which one is the parent ID and "assuming" that the highest numbered PID is the parent ID of all the other processes. Below is a sample output of running ps -ef | grep exp | grep -v grep. I assume from the output below that the parent process/ID is PID 11322, is that correct?

Code:

oracle 11154 11153 0 21:20 ? 00:00:00 /bin/sh -c (. ~oracle/.profile; /bin/ksh /usr/local/oracle/scripts/expdp_o
oracle 11155 11154 0 21:20 ? 00:00:00 /bin/sh -c (. ~oracle/.profile; /bin/ksh /usr/local/oracle/scripts/expdp_o
oracle 11190 11155 0 21:20 ? 00:00:00 /bin/ksh /usr/local/oracle/scripts/expdp_schema.ksh dev01
oracle 11322 11190 0 21:20 ? 00:00:00 expdp

View 2 Replies View Related

General :: How To Find Apache Client Session Process Id?

Apr 21, 2010

I am running Montavista distribution. I have an Apache server running in my machine. Now I want to know how many clients are connected to the Apache server and what are the process ids for those sessions. What is the command to do that?

View 5 Replies View Related

General :: Pipe Kernel Messages To Another Process As They Occur

Apr 13, 2011

I have an OLED screen on my laptop that I have configured to show status information. The current driver I have installed in Linux for it is able to display messages by sending them to a script as an argument separated by spaces.Example: the command /opt/asusg50oled/utils/notify.sh Hi Everybody "Hello World" displays on the oled screen:

Hi
Everybody
Hello World

If another message is sent before the old ones disappear and it reverts to status info, it pushes off the top message. Example: less than 30 seconds after the previous example, /opt/asusg50oled/utils/notify.sh "Bananas have potassium" is executed:

Everybody
Hello World
Bananas have potassium

What I want to do is have kernel messages (the kind you see by running dmesg) forwarded to this script. For example, when I insert a USB drive, the following information would show on the OLED screen as they're logged:........

View 3 Replies View Related

General :: Command To Find Out For How Many Milli Seconds A Process Is Been Running

Feb 15, 2011

Is there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .

View 10 Replies View Related

General :: Kernel Panic On Boot - Authentication Process Failed

Feb 22, 2011

I got home today to find that my KDE login screen would not let me log in. It said the authentication process failed or something and I needed to terminate the screen lock process manually. So I go over to another virtual terminal and try to log in. As soon as I enter my user name, a bunch of errors come up and I am unable to log in. "This can't be good" I think to myself, and reboot.

I am greeted by this error upon booting:
The error says that it says it cannot find /sbin/init. I loaded up a Ubuntu live CD and verified that /sbin/init is indeed present and all my other files still seem to be there. I tried booting into arch fallback on grub but that didn't work either. Midway through the day I SSHed my desktop from my phone and started it doing an upgrade. I was able to login.

View 1 Replies View Related

General :: Command Line - Get Relative Path From Two Absolute Paths In Shell?

May 13, 2010

We have two paths. First one is directory, second either dir or file.

/a/b/c and /a/d/e.txt

Relative path from first path to second will be: ../../d/e.txt

How to get it in linux terminal?

PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)

View 1 Replies View Related

General :: Find All Child Processes Of A Parent Process Given To Script As Argument?

Feb 15, 2011

well i have just started with shell scripting...how to find all child processes of a parent process given to script as argument.

View 10 Replies View Related

Slackware :: Kernel Hang During Boot Process - Slack 13.1 Stable W/ Kernel 2.6.33.4-smp

Jun 20, 2010

I installed a fresh copy of Slackware 13.1 (stable) on one of my media servers and I am experiencing something strange.... When I power up the machine, I see the kernel booting, no errors, until it gets to the point where it says:

And then randomly freeze there.... Well the machine is not totally frozen because the cursor still blinks. But it will never continue... Like I said, this happens on a random basis... After a reset, it might go through or simply stall at the same spot.

I remember after installing Slack 13.1, I rebooted the machine but forgot to remove the DVD from the player, so the install routine started up, and froze at the same point when it was loading the kernel for the setup programs...

My mobo is a MSI k9N platinum.

I never had this problem before.... (well I never used 13.1 before). Since I got this machine, I used slack 12.2 and slack 13-current with success.

This problem makes the machine extremely unreliable because I intent to use it as a backup and media server, so chances I will WOL the machine and use it remotely... if that happens.

View 10 Replies View Related

General :: Where To Find Kernel Options ?

Jan 7, 2011

Code:

How do I know what option means what to compile my own kernel? How to find support for different hardware in this mess (and exclude it)?

View 3 Replies View Related

General :: Find The Documentation For RHEL 5.4 Kernel 2.6.18?

Jul 6, 2010

Where can I find the documentation for RHEL 5.4 kernel 2.6.18?

View 1 Replies View Related

General :: Find Whether Any Kernel Supports 32-bit Or 64-bit Architecture?

Feb 24, 2010

Is there a command or any steps to follow?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved