![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unix Process | mishra.dd | UNIX for Dummies Questions & Answers | 4 | 08-29-2006 04:34 PM |
| How to get process name from process id in all Unix platforms? | molu | High Level Programming | 3 | 04-25-2006 09:41 PM |
| UNIX Process Suspend | proton | UNIX for Dummies Questions & Answers | 3 | 02-13-2005 12:27 AM |
| unix process control | nicko | Filesystems, Disks and Memory | 2 | 05-16-2002 04:39 AM |
| Unix Process Failed | killerserv | UNIX for Dummies Questions & Answers | 1 | 05-09-2001 07:08 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
__________________
Regards, Satya Prakash Prasad |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Thanks for ur reply. But I was unable to find such a resource like 'getprocs()' .I am working on SCO Unix . Kindly provide me an alternative solution for it.
Thanks in advance
__________________
Regards, Satya Prakash Prasad |
|
#4
|
|||
|
|||
|
No this is from AIX. You should check your manuals. I dunno SCO
Regards |
|||
| Google The UNIX and Linux Forums |