process list


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers process list
# 1  
Old 06-29-2009
process list

i read in ps manual that -C cmdlist will just result to processes stated in the cmdlist. i intend to issue this command

ps c -FC "firefox-bin, soffice.bin"

here cmdlist contains two executables only. in the future, this cmdlist will grow. is there a way i can make ps read a csv file as the source of cmdlist?

thanks
# 2  
Old 07-01-2009
Try process substitution
Code:
ps -C $( < /path/to/my/csvfile.csv)

This assumes you are using a modern POSIX shell, like ksh or bash
# 3  
Old 07-02-2009
process list

sir jim,

thanks, that worked!

i am using bash. your reply prodded me to read more on substitution. good lead, sir. may i extend my luck with some more questions?

can the ps command in a server-side script be made to execute on another workstation in the LAN? that is, selected workstation(s) in the network will be asked to run the ps locally but the csv file comes from the server. this is to avoid each workstation having to wget the csv file from the server and copied locally. the output of the ps command is also redirected to a file in the workstation (only because i dont know how to redirect it to a file on the server instead). and sometime later, i can then just execute a cron task to wget those local files into a directory in the server for later processing.

but if a server script can be made to run the ps command (referring to processes running in the workstation) and the ps output can be directed to a file on the server, that would even be better.

i am not sure of my newbeeish approach, better ideas are most welcome. but i am at a loss on what keywords to search over the net.

thanks again
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to list process name only?

Hi team, Anyone help me cut a process name from ps -ef output? lit-dbrac01-b004: $ ps -ef|grep pmon|cut -f5 ... oracle 448 1 0 2014 ? 00:04:15 ora_pmon_blms50db2 Like I need just the process name: ora_pmon_blms50db2 Any ideas? Thanks in advance. jd (3 Replies)
Discussion started by: jonnyd
3 Replies

2. Shell Programming and Scripting

Process List Parsing?

Most of the code I've seen is been listing processes or capturing process ids, etc. But here's what I need to do. Preferably in Korn shell. 1. do a ps -ef |grep tns |grep -v grep in order to get a list or Oracle listeners that are running. 2. parse the line into components which... (7 Replies)
Discussion started by: MRMonteith
7 Replies

3. Shell Programming and Scripting

List of process of user

Hi, I need an output of process running on server, i am executing ps -ef | grep test output is asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117 asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies

4. Shell Programming and Scripting

list which process using how many cpu

i want to list which process using how many cpu ,but i must be list cpu rate and process name,not only PID how can i do? (5 Replies)
Discussion started by: utoptas
5 Replies

5. UNIX for Dummies Questions & Answers

Process list

Hi, How to list the processes which are created in last 7 days ? Is there any script or command, please reply ASAP. Thanks Rajesh (2 Replies)
Discussion started by: rajesh08
2 Replies

6. AIX

How to list the resources used for each process

Hi Expert, Can anyone tell what command can list the resources used for each process in AIX, including the following columns: Process ID, Program Name, Resources used(CPU,RAM,SWAP),Start Time Thanks!! Victor Cheung (3 Replies)
Discussion started by: victorcheung
3 Replies

7. UNIX for Advanced & Expert Users

List Process with their Status.

Hi all, How can I get the list of all the processes that are either Orphan or Zombie or Running or Ended or Stopped ? Please suggest !! Thanks. Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

8. UNIX for Advanced & Expert Users

list windows process

Hello Community, I've got a unix server and 13 pcs with windows. I'm trying to built some tiny winy app to monitorize the windows processes. Any one knows if exist some kind of pstools for unix to communicate with windows. I'm the system administartor so I've got rights in all computers. ... (3 Replies)
Discussion started by: ncatdesigner
3 Replies

9. Solaris

OS functions for process list

I'm currently fixing a bug in a C program in which I need to check to make sure another specific application is up and running before continuing. Are there any SunOS API functions that can provide me with a list of currently running processes on the system? I'd like to avoid using 'ps' with a... (1 Reply)
Discussion started by: jalburger
1 Replies

10. Solaris

extended process list on Solaris?

Hello All, I am quite new to Solaris. Can someone tell me what's the equivalent of HP-UX ps -efx on Solaris? It basically displays the whole command, instead of te first 80 characters of the command. I need that to differentiate among multiple Weblogic processes where all the specifics... (1 Reply)
Discussion started by: usfrog
1 Replies
Login or Register to Ask a Question