ps is a Unix operating system command and the like used to display the running processes.
0
votes
1answer
19 views
Linux Command to display only mingetty's info
I am looking for a command that will give only mingetty's information. How can you construct the command to find only mingetty data and find the PPID in Linux?
0
votes
0answers
36 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
44 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
29 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
92 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 ...
0
votes
3answers
84 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 ...
1
vote
1answer
48 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 ...
1
vote
2answers
100 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
77 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
40 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
78 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 ...
0
votes
1answer
157 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
80 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
1
vote
2answers
178 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 ...
3
votes
2answers
159 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 ...
4
votes
2answers
54 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 ...
0
votes
0answers
79 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
62 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
-1
votes
1answer
170 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 ...
0
votes
1answer
327 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
149 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
...
0
votes
0answers
90 views
what is this kicker process that shows up when i do top?
This morning when I came to my office i noticed the machine very slow so I did 'top' at the terminal and i see at least 50 process running and they are "kicker-3.4-reve"!!! I am using RedHat Linux
It ...
1
vote
1answer
55 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 ...
7
votes
4answers
3k 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
339 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
278 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
584 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 ...
2
votes
5answers
2k 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 ...
6
votes
2answers
5k 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
44 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
131 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 ...
1
vote
3answers
113 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
394 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
88 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 ...
4
votes
5answers
2k 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
835 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
942 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
2
votes
1answer
2k 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
507 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 ...
5
votes
3answers
3k 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
475 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
815 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
3k 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
834 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 ?
3
votes
1answer
2k 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
777 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 ...
19
votes
9answers
16k views
Why should I choose either PCL or PS when both are supported
Obviously the answer depends to some degree on the various versions supported, but in general terms - is there any reason I should pick one over the other? PCL for art and PS for text? Does one ...
3
votes
1answer
6k views
for ps aux what are Ss Sl Ssl proccess types UNIX
when doing a "ps aux" command I get 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
282 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
260 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 ...

