ps is a Unix operating system command and the like used to display the running processes.

learn more… | top users | synonyms

0
votes
0answers
256 views

Name of Rake task in ps output?

pid = `ps -ef | grep -v grep | grep rake | awk '{print $2}'` This is a bunch of ruby code that executes piped linux commands. While I usually just use ps aux, just because, I noticed that the rake ...
1
vote
1answer
749 views

What determines the process name in ps aux?

I'm trying to track down this script called ./launch.sh, that on my machine is currently in an infinite loop in which it calls a Java program, immediately crashes, then sleeps for 3 seconds. ps aux ...
0
votes
0answers
168 views

Which processes were running yesterday?

We have a production machine that keeps crashing on regular basis. Our staging environments run fine, but when the application is deployed to production, the production machine crashes after two or ...
1
vote
1answer
558 views

awk - max value of a rolling average

I have a bash command which gives me the highest value in the 9th column of a file: cat "log.txt" | grep 1923 | awk '{print $9}' | sort -n | tail -1 log.txt is a log of CPU usage for process 1923 ...
3
votes
3answers
7k views

How to get only the user, the pid and the command run for a specific process? (Ubuntu 11.10)

When I do ps -ef|grep python I get the following: myusername 4492 2994 0 10:32 pts/0 00:00:01 /home/myusername/.virtualenvs/myproject/bin/ipython manage.py runserver root 6665 1 0 ...
2
votes
1answer
404 views

ps comm format always cuts the process name

I am trying to invoke ps -o comm:1024 --pid 1391 --cols 1024 -w in the hope of getting the full process name (and only that), but I always end up with this COMMAND notification-ar while the process ...
2
votes
2answers
4k views

kill - no process found

when I list my processes I have: root@adam-ThinkPad-T410:~# ps -e | grep signals 11641 pts/0 00:00:00 signals 11642 pts/0 00:00:00 signals 11643 pts/0 00:00:00 signals but when I ...
3
votes
1answer
283 views

rsync … blocked for more than 120 seconds

I'm running an rsync between two external USB 2TB drives to make a copy on a CentOS 5.9 server. It appears to have stalled, and it hangs when I cd to the source drive in the copy, while the ...
1
vote
0answers
314 views

ps - Summing up memory usages

The more I read, the more confused I get.. I want to generate a list of processes and their memory consumption (physical + virtual). So far, this is what I have done: I take the VSZ of each ...
1
vote
2answers
275 views

Kill a process in Unix

When I execute theps -fea | grep ssh-agent command, I get the following output: tomcat 29057 14086 0 Jan 09 ? 0:00 ssh-agent oracle 1964 14086 0 Nov 26 ? 0:00 ...
2
votes
1answer
3k views

How to list a process tree on windowss?

I know in linux it's very usefull the pstree command and something like that is what i'm looking for... but how to make a detailed process list (tree) on windows terminal?
3
votes
2answers
494 views

find any script which is running for more than say 30 minutes in Linux System

Please share command to find any script which is running for more than say 30 minutes. in Linux System
2
votes
2answers
2k views

flag to 'ps' command that can filter on arguments?

I know the argument "-C" which can filter on the command. But in my scenario I may have some processes with the same process name and different args. How to filter on these args? (I know I could ...
4
votes
2answers
1k views

Multiple pages per sheet (PDF)

I use the following commands pdf2ps input.pdf - | psnup -pA4 -4 >> output.ps ps2pdf output.ps output.pdf rm output.ps to merge multiple pages (in this case 4) from input file to one sheet in ...
5
votes
2answers
323 views

why ps -ef show the time like this

When I run the ps -ef command I receive something like this: root 26728 26725 99 Sep25 ? 1184018564-02:43:14 java -jar /root/TaskManager.jar I need to understand why the time is shown ...
1
vote
0answers
270 views

PStree with memory use?

Is there any utility out there for linux that will give me a PStree with memory use per process? I guess it's possible in theory to grab a pstree with pids, then comb ps itself for the memory use for ...
0
votes
2answers
82 views

How do I get my Unix ps version number?

I tried these, all without success: ps --version ps -version ps -v ps -V man ps, searching for version information Specs: Mac OS X 10.8.2 MacBook Pro 2009
0
votes
1answer
586 views

Why do processes on Mac not add up to total physical memory?

Running ps -ax -O 'rss user %mem should summon all the processes that are currently contributing to either Active or Wired , in the Mac definitions of "Active + Wired + Inactive + Free = Total ...
2
votes
4answers
2k views

How to select processes by command name when using ps in Mac OS X

In Linux, I use ps -C command_name to select processes of specified command name. But it doesn't work in Mac OS X. I read the the man page of ps carefully, but just can not find any option to do this. ...
0
votes
2answers
349 views

How to kill all process of a program?

Sometimes I get some problem with Skype or Netbeans. So, when I want to kill all processes of them and restart them the only way I know is to perform $ ps aux | grep skype get all process id ...
1
vote
1answer
69 views

Running ps with clauses as AND instead of OR

I am looking to see if a specific process is running as a specific user. For which I can do this ps --no-headers -C command -o user | grep user Which is pretty neat, it however gets slightly ugly ...
19
votes
5answers
14k views

Excluding grep from process list

I have cobbled together a command to return the process ID of a running daemon: ps aux | grep daemon_name | awk "{ print \$2 }" It works perfectly and returns the PID, but it also returns a second ...
0
votes
2answers
855 views

How to get the current timestamp when using 'ps' in a Bash script?

I am writing a shell script that gets all the current processes running, and pipes them into grep to filter out the ones I need. But I also need it to give me a timestamp, either when the ps occurs, ...
0
votes
3answers
717 views

Linux Memory Displays Half Used But No Processes Seem to Be Using It

I am running a Java script on a Fedora Core Release 6 server (Linux 2.6.19-1.2911.6.5.fc6xen x86_64) and am concerned about a lack of memory. The box has 2 GB of memory in total. Running "free -tm" ...
0
votes
2answers
3k views

ps warns me about bad syntax with “aux” options

When I attempt to run the command ps with the flags/switches/options aux I get the following message. If I run the command without grep, no message is displayed. What am I doing wrong? ps -aux | grep ...
9
votes
5answers
6k views

Why does ps aux displays a number instead of a username?

Running ps aux just gave me the following output: ... www-data 26254 0.0 0.7 27304 3544 ? S 15:07 0:00 /usr/sbin/apache2 -k start 1001 25807 0.8 0.8 48444 4332 ? Sl ...
19
votes
5answers
19k views

ps: How can i recursively get all child process for a given pid

How can I get the entire process tree spawned by a given process displayed as a tree and only that tree i.e. no other processes? The output could e.g. look like 4378 ? Ss 0:10 SCREEN ...
0
votes
1answer
54 views

Listing processes for a certain timeframe

ps -fu username lists all processes currently running. Is there a way to list all processes that were running in a time period ? like, the ones that ran yesterday (and are no longer running)
0
votes
2answers
180 views

memory usage by using ps in linux

I am trying to compare memory usage between my program and sample program which is given by using ps in linux mine and sample is written by c++ and I am not sure how to compare how much memory those ...
2
votes
3answers
209 views

grep -c gives inconsistent outputs

I am trying to determine the number of processes that are running via the following command line: ps aux | grep -c 'Xvfb :1' When the process "fiji :1" is not running I sometimes get a value of 0 ...
0
votes
2answers
1k views

csh script to return number of process running

I want to set the number of a particular process that are running to a variable. The first line of the csh script below is the problem as it sets the variable "number" as ps aux | grep -c fiji ...
1
vote
1answer
132 views

pdf file resists converting to ps and printing

I'd like to print this file: http://florian-konnertz.de/public/Psychology_of_Computer_Programming.pdf I cant find out how I do that here. I tried on our Kyocera FD 2000 beside from pdf viewers from ...
9
votes
5answers
6k views

How to find out from which folder a process is running?

In *nix you can use ps to see which process are running. But if an executable has multiple homonimous files in a device, we can't figure where it was invoked from. This is slightly different from my ...
2
votes
2answers
1k views

How to convert PDF to ASCII Postscript so the contained text can be searched/replaced?

According to Chapter 3.2 of the PostScript Language Reference, "there are three encodings for the PostScript language:ASCII, binary token, and binary object sequence". We've been generating PDF files ...
1
vote
1answer
3k views

Unix ps -l priority

Why does unix ps -l whows one number in column "PRI" but in same time ps -o pri shows another number? P.S. cpu and nice are zero for those processes
6
votes
1answer
8k views

Unix : List children processes for a given pid

What I need is, given a process id, list all his children without any clutter (table header, other columns than the pid) What I have is : ps h --ppid $PID Which gives me: 26277 pts/13 S+ ...
0
votes
1answer
1k views

How can I convert a PostScript file into a PDF where text can be selected?

I'm on a Mac. I need text to be selectable in applications such as Preview.app, so that I can highlight it. If I open the PS file directly in Preview, I cannot select text. I have already tried ...
7
votes
3answers
8k views

Why does my system hang when I run ps, w and possibly other commands?

I don't know why, but I cannot run the ps or w commands on my Ubuntu 10.04LTS machine. I did a trace for both, and both stopped when reading part of the same file. Here's the result of running ps ...
2
votes
2answers
680 views

CMD in ps command in linux

Under CMD, I was wondering what the /1 or /2 ... are? What do they indicate? I couldnt find it in the man page. In general, does anyone have a good understanding of the CMD column that they could ...
0
votes
2answers
1k views

How to Split a Big Postscript file (3000 pages) into one individual file per page (using Windows 7)? [duplicate]

Possible Duplicate: GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files. Hi, I'm having trouble doing the following: I have a big PDF file that I ...
2
votes
2answers
5k views

GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files

I'm trying to do the following with ghostscript: Turn one multipage PDF file (about 3,000 pages, 200mb file) into: One file per page of the PDF, and convert each (page/file) to EPS or PS (post ...
0
votes
1answer
2k views

how to check process tree in hpux, just like ptree in Solaris?

how to check process tree in hpux, just like ptree in Solaris ?
4
votes
2answers
5k views

Is it possible to 'hide' a process from the listing of `ps` or `top` on Linux

First, I presume that if this is possible it would need to be done as root (or as a user who shares root's UID of 0). How can a process be launched so that it does not show up in a ps aux or ps ef or ...
1
vote
1answer
4k views

In ps -ef, what information does the fourth column show?

For example, ps -ef Display full information about each of the processes currently running. UID PID PPID C STIME TTY TIME CMD hope 29197 18961 0 Sep27 ? 00:00:06 sshd: hope@pts/87 hope 32097 29197 ...
7
votes
1answer
18k views

In UNIX, what are the Ss, Sl, and Ssl proccess types I see with ps aux?

When doing a ps aux command, I see some process listed as Ss, Ssl and Sl. What do these mean? root 24653 0.0 0.0 2256 8 ? Ss Apr12 0:00 /bin/bash -c /usr/bin/python ...
1
vote
1answer
401 views

Groff ignores line breaks from my shell

I've been using groff to make ps files for printing with the -man flag. If I want to convert anything else such as a header file or just the output from ls -l or other program the line breaks are ...
3
votes
1answer
297 views

Why is the reported user “root” when a “normal user” executes “ps ux” on OS X? Is this normal behaviour?

I am running OS X 10.6.1 . When i am logged in as a normal user of group staff and do a ps ux it lists my ps ux command as being run by root: snies 181 0.0 0.3 2774328 12500 ?? S ...
93
votes
3answers
129k views

ps aux output meaning

When typing ps aux, what does each column of the output mean? For example $ ps aux timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine root 29505 0.0 0.0 38196 2728 ? ...
26
votes
5answers
47k views

How can I know the absolute path of a running process?

If I have multiple copies of the same app on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish from the others?