1
vote
2answers
22 views

two processes are listed for one shellscript?

I have a shell script which does somewhat simple. #!/bin/sh do something boring... When I execute the shell script like this, $ nohup sh mysh.sh > /null/dev/ 2>&1 & I see there are ...
0
votes
0answers
10 views

pidof Xorg is not returning a number on my computer

I'm trying to debug a performance problem with Xorg on my computer and I found a curious problem doing the operf command: pidof -sx Xorg, or just pidof Xorg outputs nothing. But ps -e | grep Xorg ...
0
votes
1answer
44 views

What does ps axuwfw return?

I am getting strange output including my old makefile output and process tree when running below command on linux ps axuwfw Also, what is the usefulness of the following command and how does it ...
1
vote
1answer
148 views

What is the AIX's `ps -T PID` equivalent for Linux?

I really like the way ps -T PID works on AIX. It shows you a nice tree of processes in the right side, and their PID, PPID and other info in the left side. In AIX docs, the -T flag reads Displays ...
1
vote
1answer
47 views

Why can ps know about the process that runs after it?

[root@myvm1 ~]# ps aux | grep ls root 13594 0.0 0.1 3912 672 pts/1 R+ 09:46 0:00 grep ls In the above, the ps aux runs first and its output is then redirected to the grep ls ...
3
votes
1answer
223 views

How can I graph memory usage by user?

Basically, I want to graph the memory usage with each username as title, as time passes by. I would set that script as a cron job, to create a graph that shows memory usage of certain usernames. How ...
0
votes
2answers
206 views

Start java process with different names?

I have 2 eclipse and 2 servers running If i make a ps -C java i see something like: 2460 pts/1 00:03:08 java 2908 pts/3 00:00:05 java 3045 pts/4 00:00:17 java 3284 pts/3 00:01:40 java ...
1
vote
1answer
60 views

How to determine full command with args given a pid (or port in use)

I've got this nice bash function for telling me the pid using a port: using_port() { lsof -i:${1} } Output looks like this: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ...
0
votes
1answer
61 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
180 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
516 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 ...
1
vote
1answer
417 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 ...
2
votes
3answers
2k 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
222 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 ...
0
votes
2answers
288 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
2answers
693 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, ...