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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-07-2002
S.P.Prasad S.P.Prasad is offline
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.
  #2 (permalink)  
Old 01-08-2002
thalex thalex is offline
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.
  #3 (permalink)  
Old 01-17-2002
S.P.Prasad S.P.Prasad is offline
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
  #4 (permalink)  
Old 01-22-2002
thalex thalex is offline
Registered User
  
 

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

Regards
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0