OS functions for process list

Thread Tools Search this Thread
Operating Systems Solaris OS functions for process list
# 1  
Old 04-09-2007
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 system() call.
# 2  
Old 04-09-2007
You would need to scan the /proc directory. The api is just readdir.
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

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 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

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... (2 Replies)
Discussion started by: mbaste2
2 Replies

6. Shell Programming and Scripting

Get the List of functions with modified parameters

Hi I have 2 files a.c and a.bak where I changed long to int using awk script. I want to get the list of functions whose parameters got modified for eg: fun ( long a, long b ) might be changed to fun ( int a, int b ) (1 Reply)
Discussion started by: Sivaswami
1 Replies

7. 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

8. AIX

Is there a way to list all the functions dotted in to the env?

Hi People, Please advise if there is a command to retrieve the list of functions (user-defined) available at any certain point? Cheers (1 Reply)
Discussion started by: easwam
1 Replies

9. 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

10. 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
Login or Register to Ask a Question

Featured Tech Videos