The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2002
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
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
Reply With Quote
Forum Sponsor
  #2  
Old 01-08-2002
Registered User
 

Join Date: Nov 2001
Posts: 33
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.
Reply With Quote
  #3  
Old 01-17-2002
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
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
Reply With Quote
  #4  
Old 01-22-2002
Registered User
 

Join Date: Nov 2001
Posts: 33
No this is from AIX. You should check your manuals. I dunno SCO

Regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0