![]() |
|
|
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 |
| Unix Process | mishra.dd | UNIX for Dummies Questions & Answers | 4 | 08-29-2006 08:34 PM |
| How to get process name from process id in all Unix platforms? | molu | High Level Programming | 3 | 04-26-2006 01:41 AM |
| UNIX Process Suspend | proton | UNIX for Dummies Questions & Answers | 3 | 02-13-2005 03:27 AM |
| unix process control | nicko | Filesystems, Disks and Memory | 2 | 05-16-2002 08:39 AM |
| Unix Process Failed | killerserv | UNIX for Dummies Questions & Answers | 1 | 05-09-2001 11:08 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Unix Process
I have successfully opened /dev/table/proc file and read processes pids and its details from it, but I am unable to have programatic knowledge of how to access process CMD or its corresponding name.
Kindly do guide me out on the said request for which I will be very thankfull. |
|
||||
|
In libc.a there is the getprocs() subroutine. U can use that for consistent programming instead of reading the file. See procinfo.h for the results.
When you then have the pid of the process u can signal() it. This is for standard programming. If you want to use their code, that is very difficult since you must manipulate memory, lock it if you have permissions, deal with the kernel. That also means in general platform dependent code, and u know exactly what u are doing... I dont understand what u want to do with the processes, since these are programs in general and have their own entry points and interface. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|