home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5329 < prev    next >
Encoding:
Text File  |  1992-11-17  |  965 b   |  30 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!ukma!darwin.sura.net!jvnc.net!nuscc!lincoln.technet.sg!swispl
  3. From: swispl@solomon.technet.sg (SW International)
  4. Subject: Question: How to get comd line arg of processes
  5. Message-ID: <Bxw8qA.3tE@lincoln.technet.sg>
  6. Sender: news@lincoln.technet.sg
  7. Nntp-Posting-Host: solomon.technet.sg
  8. Organization: TECHNET, Singapore
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Date: Wed, 18 Nov 1992 04:06:09 GMT
  11. Lines: 17
  12.  
  13.  
  14.  
  15. I'm writing a C program which needs to obtain the command line
  16. arguments of other running processes. Actually, 'ps -af' does
  17. the job quite nicely, but due to other constraints, I need to
  18. incorporate that function within my program.
  19.  
  20. I've not done much system programming before. Please advise if
  21. you know how it can be achieved and the pitfalls I need to watch
  22. out.
  23.  
  24. Thanks.
  25. -- 
  26. cheewai                 ---------- __o   
  27. chlai@nyx.cs.du.edu        -------- _`\<,_ 
  28. swispl@solomon.technet.sg    ------- (*)/ (*)
  29.                 ~~~~~~~~~~~~~~~~
  30.