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
1 answer

Using PS : cannot see my work from new terminal window

Hi I just started using ps. So, I am trying to run a R script in a cluster (after logging in using ssh) by writing nohup R CMD BATCH a.R > a.out & Then when I use ps -u myusername it shows : PID TTY TIME CMD 4200 pts/14 00:00:00…
hi15
  • 2,113
  • 6
  • 28
  • 51
0
votes
2 answers

How to get the information of a specific process given its process ID using the command 'ps' in Linux

How to get the information of a specific process given its process ID using the command 'ps' in Linux. I also want to get the proportion of memory the process occupies. Is that 'ps processID' ?
user3477465
  • 183
  • 2
  • 2
  • 6
0
votes
1 answer

ps aux | grep x returns two root instances

I have a python script that starts on reboot using cron @reboot. When I use ps aux | grep x.py it returns two root instances and one user (in this case the user is pi) instance. Is this a problem? How do I make sure there's only one…
user2372996
  • 73
  • 1
  • 2
  • 8
0
votes
2 answers

Set Title in postscript header, produced by IDL

How to produce an postscript output in IDL such that the title window (i.e. the Title field in the header of the postscript file) is set to the filename or to an arbitrary string? By default, it is set to "Graphics produced by IDL": %%Title:…
Gene Arboit
  • 183
  • 1
  • 1
  • 11
0
votes
1 answer

Android/iOS app product description photos

What tools/application/webs do they use to make nice description photos? e.g https://play.google.com/store/apps/details?id=com.instamag.activity The demo pictures are very nice, any PS templates I can use?
John
  • 697
  • 1
  • 10
  • 33
0
votes
1 answer

long running process id based on grep condition and send mail

ps -eaf | LaunchKTRProcess | grep -v grep this command will give me , full details of process, and i have to manually check his Running time and kill the process.
0
votes
1 answer

Changing Linux 'ps' output by changing argv[0]

I'm trying to have a program alter what 'ps' displays as the process's CMD name, using the technique I've seen recommended of simply overlaying the memory pointed to by argv[0]. Here is the sample program I wrote. #include #include…
Chap
  • 3,649
  • 2
  • 46
  • 84
0
votes
1 answer

what does this line mean on my ps aux ../apache2 -k start

I am running a web server using nginx but i can see apach2 lines when i type ps aux | grep apache The result it looks like this : www-data 3280 0.0 1.1 99708 45204 ? S 14:11 0:09 /usr/sbin/apache2 -k start www-data 8651 0.0 0.9 …
ImadT
  • 491
  • 1
  • 5
  • 21
0
votes
2 answers

stack smashing detected followed by segmentation fault

I'm a newbie. I need to print the details of all process on the system. I have redirected the output of "ps -aux" to a text file and opened it in-order to display. Though I get the required details displayed correctly, I get stack smashing error and…
Christy George
  • 309
  • 1
  • 5
  • 14
0
votes
1 answer

How to get process information of usernames in /etc/passwd in linux shell

I have extracted all usernames of /etc/passwd by command below and save them in another file: cat /etc/passwd | awk -F ":" {print $5} > temp.txt and now I want to get process information of each username of "temp.txt" but I don't know how to do…
MSH
  • 429
  • 3
  • 7
  • 20
0
votes
1 answer

C fscanf gets me duplicate lines

I'm trying to display the details of each process, by redirecting the output of 'ps' command. I have redirected the ps output to a file. I'm reading from it and displaying the Pid and Command using fscanf. But I see that I get some lines duplicated,…
Christy George
  • 309
  • 1
  • 5
  • 14
0
votes
1 answer

Perl: Module to handle nohup, and process handling in general

I have a program with lots of system commands to handle searching for, examining, and killing processes: system qq(kill $pid); and for my $pid ( qx( pgrep -f "$pgrep_re") ) { chomp $pid; ... } and my $command_line = qx(ps -o command=""…
David W.
  • 105,218
  • 39
  • 216
  • 337
0
votes
1 answer

Check whether process running linux and start with certain description

I have multiple scripts running. All the scripts have the same name but the commands they execute are doing different things. I am trying to figure out if a certain instance of the script is running and if so I don't want it to run again. This is…
user1490083
  • 361
  • 2
  • 7
  • 21
0
votes
2 answers

iPhone System Processes by CPU Rate (top/ps)

What is the best way to programmatically access the processes sorted by cpu rate on the iPhone (similar to that seen in the *nix top command)? sysctl()?
Anderson
  • 1
  • 1
  • 1
0
votes
1 answer

Get PID, when have program name fragment

I need to kill java process, that runs main class blabla.class. I can use function kill(pid_t, SIGKILL) for this reason, but I need to get PID ID. I could run linux command ps-ax | grep blabla to find PID ID. What is the best way to do this using C…
vico
  • 17,051
  • 45
  • 159
  • 315