![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get program name give a process id | naren_chella | HP-UX | 1 | 09-01-2006 07:33 AM |
| possible to run script to enter info within a program? | lianderthal | Shell Programming and Scripting | 1 | 06-09-2005 06:40 PM |
| Linux process info | nayeemmz | Linux | 2 | 02-09-2005 06:43 PM |
| IO by Process/program | cpiuk | HP-UX | 2 | 09-16-2004 04:24 AM |
| How can I get the file info of my process?ugent!!!!! | nsun | High Level Programming | 2 | 07-02-2003 09:02 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Getting process info in a program
Hi,
I am wondering if there is a way to find out in a C software program if a particular process is running without having to write a file. In the past, I have been using the system command to execute a pgrep and output the info to a file. Then the C program reads the file to make the determination, and the file is deleted. I have a request from my customer to find out this same info in the C program without writing a file. HP-UX has a pstat_getproc utility that would work, but this is not supported in most Unix variants. Is there some other way for a software program to detect if another process is running? Thanks, Herb Miller |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|