Questions tagged [ps]

ps is the UNIX command for retreiving process information.

From the Linux User's Manual:

DESCRIPTION
   ps displays information about a selection of the active processes.

By default, ps displays the current processes owned by the user executing the command and attached to the same process group as the shell that launches it. On most UNIX systems, the command
ps -A (or ps -e) will display information about all processes running on the system.

See also:
[unix] tag info
[process] tag info
[fork] tag info


  • For questions about the Postscript language, please use the tag instead.
  • For questions about the windows power shell, please use the tag instead.
585 questions
0
votes
2 answers

how to check if ruby script is running in background from PHP script?

say a ruby script is running ruby.rb SOMEUSERID using PHP, how can i find out whether something exactly like that is currently running or not ? Currently i am using PID to check but im not sure if this is efficient. What if there are lot of users…
gpwu
  • 6,957
  • 3
  • 17
  • 9
0
votes
2 answers

Create a list of process ordered by status

I need create a shell script to list the process by status type. The output must be something like: Process running: [process] Process sleeping: [process] ETC I did this, but doesnt work the ps aux | awk '$8 ~ PROCESS': for PROCESS in `ps -v | awk…
Alberto Fortes
  • 562
  • 4
  • 13
0
votes
1 answer

get process id through Perl script

In my script, I am executing cat, then trying to grep to get the process id. I used this : ps | grep -e \'cat$\' | cut -d\' \' -f2 | head -n 1 but it's not returning anything.
Subhash
  • 568
  • 1
  • 5
  • 21
0
votes
1 answer

how to add column to ps cammand linux freebsd and develop it?

How can I display a new column output from the ps command in FreeBSD? Should I change ps.c or print.c in following directory, re-build the kernel and install it? usr/src/bin/ps which part of code should be changed?
0
votes
3 answers

Linux : Get total cpu usage by httpd

I need to display the total Percentage of CPU utilized by httpd processes on a server in a php report. I am calling following from exec : ps -e -o %mem,%cpu,cmd | grep httpd | awk ' {memory+=$1;cpu+=$2} END {printf("%05.2f…
user1263746
  • 5,788
  • 4
  • 24
  • 28
0
votes
1 answer

ps, display pid and argv parameters without full command name?

I'm running under debian squeeze, and need to get processes list in very specific format. Processes are started in following way: /$script -- $param Hereinafter I will call $script as "test.sh", so it would look like this: /test.sh -- 99 I need to…
avasin
  • 9,186
  • 18
  • 80
  • 127
0
votes
1 answer

How to orthogonalize a non-orthogonal matrix using HLSL?

I'm just wondering whether this can be done in ps shader.I have an non-orthogonal matrix and need to orthogonalize it and using inverse-​transpose result.I turned to matlab for help,only found their instructions a bit of complicated for shaders.It…
April
  • 11
  • 3
0
votes
2 answers

Memory usage with high precision

How can I get high precision memory usage per proccess with "ps aux"? $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 3672 1984 ? Ss Dec11 0:07 /sbin/init root 2 0.0 …
mystdeim
  • 4,802
  • 11
  • 49
  • 77
0
votes
1 answer

How should i know the phone that has the specified arguments is the hdpi or ldpi

As the titles,the following is some arguments of the psd of my phone: The width pixels: The height pixels: The width of document is:13.333 inch The height of document is :7.5 inch so the dpi will be 96,and we will know the phone is just a ldpi phone…
0
votes
0 answers

Why some of command path are not showed completely on aix?

I'm struggling the result of "ps -ef" command on AIX. the problem is on a special daemon that I made. in the result of ps -ef command, except this daemon, the other daemons and running commands are OK. it means I can see their full command path and…
0
votes
1 answer

Need help installing pear, pecl and pecl->ps

The end goal is to be able to read/write/exec postscript files using PECL -> PS which I believe to be included within PEAR. I have done all the basics # yum update, # yum install php-pear. However, I can't use PEAR with php scripts, but can via ssh.…
Simon Hughes
  • 117
  • 5
0
votes
1 answer

Linux RSS and Shared Memory

I have a daemon written in C running under a RHEL 4 machine. The daemon access a segment of shared memory (nothing more than a big array of 65536 elements). No malloc/free are done. I observed that ps aux shows that the daemon has the size of shared…
Davide Berra
  • 6,387
  • 2
  • 29
  • 50
0
votes
2 answers

Unix - regarding & and ps

I'm working on a hw assignment and was wondering if someone with a bit more Unix experience could explain what is meant by the following question: Run sample program 1 in the background with & Using the ps utility with appropriate options, observe…
Jordan
  • 2,070
  • 6
  • 24
  • 41
0
votes
3 answers

ps command output on AIX, HPUX and Solaris

I am writing a portable shell script to get system process information, I need process id, command, pwdx (linux). On linux I am able to get this information as follows.. but it fails on all other unix flavours. $ ps -awwwwwww -u -o…
DevC
  • 7,055
  • 9
  • 39
  • 58
-1
votes
2 answers

How to use "Regular Expression" in ps?

I am trying to use ps -C chromi* to see all chromium processes, but no success. How can I use regular expression in here?
user13887828